Function at 0x40100f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
mov dword [ebp - 0x3c], 1
mov byte [ebp - 5], 0
mov dword [ebp - 0x14], str.Unknown_error.
mov dword [ebp - 0x38], str.G2M_Exe
and dword [ebp - 0x28], 0
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x4010c3
push dword [ebp - 0x40]
call fcn.00497000
pop ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str._noop
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ax, word [eax]
mov word [ebp - 0x2a], ax
mov ecx, dword [ebp - 0x24]
cmp ax, word [ecx]
jne 0x4010a7
cmp word [ebp - 0x2a], 0
je 0x4010a1
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 2]
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x24]
cmp ax, word [ecx + 2]
jne 0x4010a7
add dword [ebp - 0x20], 4
add dword [ebp - 0x24], 4
cmp word [ebp - 0x2c], 0
jne 0x401065
and dword [ebp - 0x44], 0
jmp 0x4010af
sbb eax, eax
or eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x4010c3
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4010d9
jmp 0x4012ed
and dword [ebp - 0xc0], 0
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0x104
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x401114
cmp dword [ebp - 0x48], 0x104
jne 0x401120
mov dword [ebp - 0x14], str.Error_getting_module_name.
jmp 0x4012ed
lea eax, [ebp - 0x1f0]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movsx eax, byte [eax]
test eax, eax
je 0x40113c
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x401129
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movsx eax, byte [eax]
cmp eax, 0x2e
je 0x401161
lea eax, [ebp - 0x1f0]
cmp dword [ebp - 0x10], eax
jbe 0x401161
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
jmp 0x401142
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x401186
lea eax, [ebp - 0x1f0]
cmp dword [ebp - 0xc], eax
jbe 0x401186
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
jmp 0x401167
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1f0]
cmp dword [ebp - 0x10], eax
je 0x4011b4
lea eax, [ebp - 0x1f0]
cmp dword [ebp - 0xc], eax
je 0x4011b4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jbe 0x4011b4
cmp dword [ebp - 0x1c], 0
jne 0x4011c0
mov dword [ebp - 0x14], str.Error_parsing_base_module_name.
jmp 0x4012ed
cmp dword [ebp - 0x1c], 0x40
jbe 0x4011d2
mov dword [ebp - 0x14], str.Module_base_name_too_long.
jmp 0x4012ed
and dword [ebp - 4], 0
jmp 0x4011df
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jae 0x4011fc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov al, byte [eax + 1]
mov byte [ebp + ecx - 0xa8], al
jmp 0x4011d8
mov eax, dword [ebp - 4]
lea eax, [ebp + eax - 0xa8]
mov dword [ebp - 0x4c], eax
and dword [ebp - 4], 0
jmp 0x401216
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 9
jae 0x40122f
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + str._WinMain]
mov byte [eax], cl
jmp 0x40120f
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 4]
mov byte [eax], 0
lea eax, [ebp - 0xa8]
push eax
call fcn.00401316
pop ecx
push 0x4020b8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x401276
mov dword [ebp - 0x14], str.Error_loading_DLL.
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp + eax - 0xa8], 0
jmp 0x4012ed
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4012ac
mov dword [ebp - 0x14], str.Error_getting_DLL_entry_point.
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp + eax - 0xa8], 0
jmp 0x4012ed
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xc0]
and eax, 1
je 0x4012c9
movzx eax, word [ebp - 0xbc]
mov dword [ebp - 0x54], eax
jmp 0x4012d0
mov dword [ebp - 0x54], 0xa
push dword [ebp - 0x54]
push dword [ebp - 0x34]
push 0
push dword [ebp - 0x28]
call dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 5], 1
xor eax, eax
jne 0x4010c3
movzx eax, byte [ebp - 5]
test eax, eax
jne 0x401308
push 0x1010
push dword [ebp - 0x38]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]