Function at 0x409c00
Capabilities:
Accept command line arguments
Hide graphical window
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x40a0b0
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x409c37
push edi
call fcn.0040a6a0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x10
jne 0x409c81
push str.Send_WM_CLOSE_to_emulator_window_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.libsvd.dll_svd_closeall]
mov edx, dword [edi + 0xc8]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
cmp eax, 2
jne 0x409cba
lea edx, [esp + 0xc]
push edx
push edi
mov dword [esp + 0x14], 1
call fcn.0040a920
cmp dword [esp + 0xc], 0
mov dword [ebx], eax
je 0x40a078
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x410
je 0x409cf9
cmp eax, 0x233
jne 0x409ce3
mov esi, dword [ebp + 0x10]
push edi
call fcn.0040ad50
mov ecx, ebx
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x7eb
jne 0x409d0f
mov edx, dword [edi + 0xf0]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, ebx
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x7ee
jne 0x409d30
mov esi, dword [ebp + 0x10]
call fcn.0040bc30
mov ecx, ebx
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x7ef
jne 0x409d57
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edx
mov esi, edi
call fcn.0040bc90
mov ecx, ebx
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x111
jne 0x40a078
mov edx, 0xe101
cmp dx, si
jne 0x409d83
call fcn.0040aa10
mov ecx, ebx
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, 0xe141
cmp dx, si
jne 0x409db3
mov eax, dword [edi + 4]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, ebx
mov dword [ecx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, 0x801d
cmp dx, si
jne 0x409dd6
mov edx, edi
call fcn.0040b340
mov ecx, ebx
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, 0xe100
cmp dx, si
jne 0x409e02
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0040b390
mov eax, ebx
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 0x8007
cmp cx, si
jne 0x409e33
push 0
mov ebx, edi
mov byte [edi + 0xe8], 1
call fcn.0040a480
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x8008
cmp ax, si
jne 0x409e57
mov ebx, edi
call fcn.0040aae0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, 0x8009
cmp dx, si
jne 0x409e84
cmp dword [edi + 0x5c], 0
jne 0x409e6e
mov eax, edi
call fcn.0040add0
mov eax, ebx
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 0xe140
cmp cx, si
jne 0x409ea5
call fcn.0040aba0
mov edx, ebx
mov dword [edx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x802d
cmp ax, si
jne 0x409eca
call fcn.0040c070
mov ecx, ebx
mov dword [ecx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, 0x8030
cmp dx, si
jne 0x409eef
call fcn.0040ac30
mov eax, ebx
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 0x800a
cmp cx, si
jne 0x409f12
mov esi, edi
call fcn.0040b240
mov edx, ebx
mov dword [edx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x800b
cmp ax, si
jne 0x409f35
mov esi, edi
call fcn.0040b2c0
mov ecx, ebx
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, 0x8016
cmp dx, si
jne 0x409f61
push edi
call fcn.0040b530
push edi
call fcn.0040b440
mov eax, ebx
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [esi + 0x1111]
cmp cx, 0x64
ja 0x409f85
push edi
call fcn.0040bb90
mov edx, ebx
mov dword [edx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x8015
cmp ax, si
jne 0x409fa8
mov eax, edi
call fcn.0040bd50
mov ecx, ebx
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, 0x8020
cmp dx, si
jne 0x409fcb
mov eax, edi
call fcn.0040bdb0
mov ecx, ebx
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, 0x8014
cmp dx, si
jne 0x409fee
mov eax, edi
call fcn.0040be10
mov ecx, ebx
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, 0x801e
cmp dx, si
jne 0x40a011
mov eax, edi
call fcn.0040be70
mov ecx, ebx
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, 0x8024
cmp dx, si
jne 0x40a032
call fcn.0040bee0
mov ecx, ebx
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, 0x8025
cmp dx, si
jne 0x40a053
call fcn.0040bf60
mov ecx, ebx
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, 0x802b
cmp dx, si
jne 0x40a078
call fcn.0040c070
mov eax, ebx
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [edi + 0x40]
push edx
mov edx, dword [ebp + 0xc]
mov ecx, esi
call fcn.00409790
test eax, eax
jne 0x409c29
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x14]
push ebx
push eax
push esi
push ecx
push edx
mov ecx, edi
call fcn.0040c930
test eax, eax
jne 0x409c29
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18