35{
39 int ms_format = 0;
42 uint16_t Machine, NumberOfSections, SizeOfOptionalHeader;
43 typedef struct
44 {
57
59
60
63 {
65 return -1;
66 }
67
68
70 if (!output)
71 {
74 return -1;
75 }
76
77
79 {
82 }
83
85 {
88 }
89
92 {
95 }
96
99 {
102 }
103
104
106 {
109 }
110
111
114 {
117 }
118
123 {
126 }
127
128
129 if (
fread(&NumberOfSections, 1, 2,
input) != 2)
130 {
133 }
134
136 if (
fread(&SizeOfOptionalHeader, 1, 2,
input) != 2)
137 {
140 }
141
142
144
145
146 for (
i = 0;
i < NumberOfSections;
i++)
147 {
149 {
152 }
153
155 {
156 break;
157 }
158 }
159
160 if (
i == NumberOfSections)
161 {
164 }
165
166
168
169 while (1)
170 {
171
173 {
176 }
177
179 {
181 break;
182
185 continue;
186
188 if (ms_format)
189 {
191 {
193 }
194 else
195 {
197 }
198 }
199 else
200 {
202 }
203 continue;
204
206 if (ms_format)
207 {
209 }
210 else
211 {
213 }
214 continue;
215 }
216
217 break;
218 }
219
221
223
226
228}
int strcmp(const char *String1, const char *String2)
unsigned short int uint16_t
void quit(int argc, const char *argv[])
#define IMAGE_FILE_MACHINE_ARMNT
#define IMAGE_FILE_MACHINE_I386
#define IMAGE_FILE_MACHINE_AMD64
#define IMAGE_FILE_MACHINE_ARM64
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLenum GLenum input
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP size_t __cdecl fread(_Out_writes_bytes_(_ElementSize *_Count) void *_DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fseek(_Inout_ FILE *_File, _In_ long _Offset, _In_ int _Origin)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Must_inspect_result_ _In_ WDFDMATRANSACTION _In_ PFN_WDF_PROGRAM_DMA _In_ WDF_DMA_DIRECTION _In_ PMDL _In_ PVOID VirtualAddress