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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
jmp 0x413eee
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x413f19
mov eax, dword [ebp - 0x14]
and eax, 0xffff
mov dword [ebp + 0x14], eax
jmp 0x413f20
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 [0x4191b8], 0
mov word [0x41cc42], 0
cmp dword [ebp + 0xc], 0
jne 0x413f74
mov ecx, dword [ebp + 8]
call fcn.00414df0
test eax, eax
jne 0x413f74
xor eax, eax
jmp 0x41433c
push 0x104
push 0x41ca70
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413f97
xor eax, eax
jmp 0x41433c
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.00414e40
test eax, eax
jne 0x413fc5
push 0
push 0x4190b8
push 0x419214
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x41433c
mov dword [ebp - 0x50], 1
mov eax, dword [ebp + 0x10]
mov dword [0x41c9d0], eax
mov edx, 0x41ca50
lea ecx, [0x41c9b1]
call fcn.00416bb0
call fcn.00416be0
test eax, eax
je 0x414009
mov word [0x4191b8], 1
mov dword [0x419168], 1
jmp 0x4142a3
mov ecx, 1
call fcn.00416a90
xor eax, eax
mov ax, word [0x41cc42]
test ah, 0xc0
jne 0x414052
xor eax, eax
mov ax, word [0x41cc42]
test ah, 0x10
je 0x414052
push 0
push 0x8003
push 0x111
mov eax, dword [0x41cb90]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x414057
call fcn.00414670
cmp dword [0x419170], 0
je 0x41407a
mov ecx, dword [ebp - 0x50]
call fcn.00416cb0
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
call fcn.00416d70
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 1
jne 0x4140ab
xor eax, eax
mov ax, word [0x4191b8]
test eax, eax
je 0x4140ab
xor eax, eax
mov ax, word [0x41c9af]
test eax, eax
je 0x4140ab
dec word [0x41c9af]
cmp dword [ebp - 0x50], 1
jne 0x4141c1
xor eax, eax
mov ax, word [0x4191b8]
test eax, eax
je 0x4141c1
xor eax, eax
mov ax, word [0x41917c]
test al, 2
jne 0x4140f3
cmp dword [0x419178], 0
je 0x4140f3
xor eax, eax
mov ax, word [0x41917c]
or eax, 2
mov word [0x41917c], ax
xor eax, eax
mov ax, word [0x41917c]
test al, 2
je 0x414132
call fcn.00417240
mov word [0x4191b8], ax
xor eax, eax
mov ax, word [0x4191b8]
test eax, eax
jne 0x414132
push 0
push 0x4190b8
push 0x419204
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ax, word [0x41917c]
test al, 1
jne 0x4141c1
cmp dword [0x419174], 0
je 0x414184
movsx eax, word [0x41c9c1]
test eax, eax
jl 0x414184
movsx eax, word [0x41c9c1]
shl eax, 2
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
mov ecx, dword [0x41cc4c]
xor edx, edx
mov dx, word [eax + ecx + 0x28]
test dl, 8
jne 0x4141b0
cmp dword [0x419174], 0
je 0x4141c1
movsx eax, word [0x41c9c1]
test eax, eax
jge 0x4141c1
xor eax, eax
mov ax, word [0x41cc54]
test al, 8
je 0x4141c1
xor eax, eax
mov ax, word [0x41917c]
or eax, 1
mov word [0x41917c], ax
xor eax, eax
mov ax, word [0x41917c]
test eax, eax
je 0x4142a3
cmp dword [ebp - 0x50], 1
jne 0x4142a3
xor eax, eax
mov ax, word [0x4191b8]
test eax, eax
je 0x4142a3
lea eax, [ebp - 0x64]
push eax
mov edx, 0x41cb80
lea ecx, [0x41c9b1]
call fcn.00417b40
mov ecx, 0x41c950
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.00416630
test eax, eax
jne 0x414239
mov edx, 0x4191fc
mov ecx, 0x4191e0
call fcn.004175f0
mov edx, 0x41ca50
lea ecx, [0x41c9b1]
call fcn.00416bb0
mov ecx, dword [ebp + 0x10]
call fcn.004170f0
test eax, eax
je 0x414281
call fcn.00417070
mov dword [ebp - 0x50], eax
push 0
push 0
push 0x10
mov eax, dword [0x41cb90]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov word [0x4191b8], 0
jmp 0x4142a3
mov dword [ebp - 0x50], 0
mov word [0x4191b8], 0
push 0
push 0
push 0x10
mov eax, dword [0x41cb90]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x54]
call fcn.004143c0
mov dword [ebp - 0x48], eax
push 0
push 0
push 0x10
mov eax, dword [0x41cb90]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x419180], 2
je 0x414318
cmp dword [ebp - 0x50], 1
jne 0x414318
xor eax, eax
mov ax, word [0x4191b8]
test eax, eax
je 0x414318
mov eax, dword [ebp + 8]
push eax
push 0x4191a8
call dword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
mov ax, word [0x4191bc]
test eax, eax
je 0x414318
mov eax, dword [ebp - 0x4c]
push eax
lea edx, [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
call fcn.00414350
cmp dword [ebp - 0x54], 0
je 0x41432a
mov ecx, dword [ebp - 0x54]
call fcn.004175e0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
leave
ret 0x10