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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
jmp 0x409eee
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x409f19
mov eax, dword [ebp - 0x14]
and eax, 0xffff
mov dword [ebp + 0x14], eax
jmp 0x409f20
mov dword [ebp + 0x14], 0xa
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov word [0x40f1b8], 0
mov word [0x412c42], 0
cmp dword [ebp + 0xc], 0
jne 0x409f74
mov ecx, dword [ebp + 8]
call fcn.0040adf0
test eax, eax
jne 0x409f74
xor eax, eax
jmp 0x40a33c
push 0x104
push 0x412a70
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409f97
xor eax, eax
jmp 0x40a33c
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.0040ae40
test eax, eax
jne 0x409fc5
push 0
push 0x40f0b8
push 0x40f214
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40a33c
mov dword [ebp - 0x50], 1
mov eax, dword [ebp + 0x10]
mov dword [0x4129d0], eax
mov edx, 0x412a50
lea ecx, [0x4129b1]
call fcn.0040cbb0
call fcn.0040cbe0
test eax, eax
je 0x40a009
mov word [0x40f1b8], 1
mov dword [0x40f168], 1
jmp 0x40a2a3
mov ecx, 1
call fcn.0040ca90
xor eax, eax
mov ax, word [0x412c42]
test ah, 0xc0
jne 0x40a052
xor eax, eax
mov ax, word [0x412c42]
test ah, 0x10
je 0x40a052
push 0
push 0x8003
push 0x111
mov eax, dword [0x412b90]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40a057
call fcn.0040a670
cmp dword [0x40f170], 0
je 0x40a07a
mov ecx, dword [ebp - 0x50]
call fcn.0040ccb0
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
call fcn.0040cd70
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 1
jne 0x40a0ab
xor eax, eax
mov ax, word [0x40f1b8]
test eax, eax
je 0x40a0ab
xor eax, eax
mov ax, word [0x4129af]
test eax, eax
je 0x40a0ab
dec word [0x4129af]
cmp dword [ebp - 0x50], 1
jne 0x40a1c1
xor eax, eax
mov ax, word [0x40f1b8]
test eax, eax
je 0x40a1c1
xor eax, eax
mov ax, word [0x40f17c]
test al, 2
jne 0x40a0f3
cmp dword [0x40f178], 0
je 0x40a0f3
xor eax, eax
mov ax, word [0x40f17c]
or eax, 2
mov word [0x40f17c], ax
xor eax, eax
mov ax, word [0x40f17c]
test al, 2
je 0x40a132
call fcn.0040d240
mov word [0x40f1b8], ax
xor eax, eax
mov ax, word [0x40f1b8]
test eax, eax
jne 0x40a132
push 0
push 0x40f0b8
push 0x40f204
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ax, word [0x40f17c]
test al, 1
jne 0x40a1c1
cmp dword [0x40f174], 0
je 0x40a184
movsx eax, word [0x4129c1]
test eax, eax
jl 0x40a184
movsx eax, word [0x4129c1]
shl eax, 2
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
mov ecx, dword [0x412c4c]
xor edx, edx
mov dx, word [eax + ecx + 0x28]
test dl, 8
jne 0x40a1b0
cmp dword [0x40f174], 0
je 0x40a1c1
movsx eax, word [0x4129c1]
test eax, eax
jge 0x40a1c1
xor eax, eax
mov ax, word [0x412c54]
test al, 8
je 0x40a1c1
xor eax, eax
mov ax, word [0x40f17c]
or eax, 1
mov word [0x40f17c], ax
xor eax, eax
mov ax, word [0x40f17c]
test eax, eax
je 0x40a2a3
cmp dword [ebp - 0x50], 1
jne 0x40a2a3
xor eax, eax
mov ax, word [0x40f1b8]
test eax, eax
je 0x40a2a3
lea eax, [ebp - 0x64]
push eax
mov edx, 0x412b80
lea ecx, [0x4129b1]
call fcn.0040db40
mov ecx, 0x412950
add ecx, 0x61
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
call fcn.0040c630
test eax, eax
jne 0x40a239
mov edx, 0x40f1fc
mov ecx, 0x40f1e0
call fcn.0040d5f0
mov edx, 0x412a50
lea ecx, [0x4129b1]
call fcn.0040cbb0
mov ecx, dword [ebp + 0x10]
call fcn.0040d0f0
test eax, eax
je 0x40a281
call fcn.0040d070
mov dword [ebp - 0x50], eax
push 0
push 0
push 0x10
mov eax, dword [0x412b90]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov word [0x40f1b8], 0
jmp 0x40a2a3
mov dword [ebp - 0x50], 0
mov word [0x40f1b8], 0
push 0
push 0
push 0x10
mov eax, dword [0x412b90]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x54]
call fcn.0040a3c0
mov dword [ebp - 0x48], eax
push 0
push 0
push 0x10
mov eax, dword [0x412b90]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x40f180], 2
je 0x40a318
cmp dword [ebp - 0x50], 1
jne 0x40a318
xor eax, eax
mov ax, word [0x40f1b8]
test eax, eax
je 0x40a318
mov eax, dword [ebp + 8]
push eax
push 0x40f1a8
call dword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
mov ax, word [0x40f1bc]
test eax, eax
je 0x40a318
mov eax, dword [ebp - 0x4c]
push eax
lea edx, [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
call fcn.0040a350
cmp dword [ebp - 0x54], 0
je 0x40a32a
mov ecx, dword [ebp - 0x54]
call fcn.0040d5e0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
leave
ret 0x10