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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
jmp 0x40992e
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [ebp - 0x1c]
and ecx, 1
test ecx, ecx
je 0x409397
mov edx, dword [ebp - 0x18]
and edx, 0xffff
mov dword [ebp - 0x78], edx
jmp 0x40939e
mov dword [ebp - 0x78], 0xa
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x14], eax
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 ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
mov word [0x413e10], 0
mov word [0x413b08], 0
cmp dword [ebp + 0xc], 0
jne 0x4093f0
mov ecx, dword [ebp + 8]
call fcn.0040a4d0
test eax, eax
jne 0x4093f0
xor eax, eax
jmp 0x409933
push 0x104
push 0x413c7c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40940f
xor eax, eax
jmp 0x409933
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.0040a530
test eax, eax
jne 0x409439
push 0
push 0x413b7c
push 0x4102d8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x409933
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp + 0x10]
mov dword [0x413c1c], eax
call fcn.0040c310
test eax, eax
je 0x40957d
mov word [0x413e10], 1
mov dword [0x413df8], 1
mov ecx, dword [0x413e14]
and ecx, 3
test ecx, ecx
jne 0x409491
mov edx, dword [0x413e14]
or edx, 3
mov dword [0x413e14], edx
mov eax, dword [0x413d80]
xor eax, 3
mov dword [0x413d80], eax
mov ecx, dword [0x413e14]
and ecx, 0x70
test ecx, ecx
jne 0x4094ba
mov edx, dword [0x413e14]
or edx, 0x70
mov dword [0x413e14], edx
mov eax, dword [0x413d80]
xor eax, 0x70
mov dword [0x413d80], eax
mov ecx, dword [0x413e14]
and ecx, 0xa00
test ecx, ecx
jne 0x4094e8
mov edx, dword [0x413e14]
or dh, 0xa
mov dword [0x413e14], edx
mov eax, dword [0x413d80]
xor eax, 0xa00
mov dword [0x413d80], eax
mov ecx, dword [0x413e14]
and ecx, 0xe000
test ecx, ecx
jne 0x409516
mov edx, dword [0x413e14]
or dh, 0xe0
mov dword [0x413e14], edx
mov eax, dword [0x413d80]
xor eax, 0xe000
mov dword [0x413d80], eax
mov ecx, dword [0x413e14]
and ecx, 0x60000
test ecx, ecx
jne 0x409547
mov edx, dword [0x413e14]
or edx, 0x60000
mov dword [0x413e14], edx
mov eax, dword [0x413d80]
xor eax, 0x60000
mov dword [0x413d80], eax
mov ecx, dword [0x413e14]
and ecx, 0x200000
test ecx, ecx
jne 0x409578
mov edx, dword [0x413e14]
or edx, 0x200000
mov dword [0x413e14], edx
mov eax, dword [0x413d80]
xor eax, 0x200000
mov dword [0x413d80], eax
jmp 0x409899
mov dword [0x413df8], 0
mov ecx, 1
call fcn.0040c1b0
xor ecx, ecx
mov cx, word [0x413b08]
and ecx, 0xc000
test ecx, ecx
jne 0x4095d1
xor edx, edx
mov dx, word [0x413b08]
and edx, 0x1000
test edx, edx
je 0x4095d1
push 0
push 0x8003
push 0x111
mov eax, dword [0x413c38]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4095d6
call fcn.00409ca0
cmp dword [0x410250], 0
je 0x4095f5
mov ecx, dword [ebp - 0x4c]
call fcn.0040c3e0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.0040c4a0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
jne 0x409625
xor ecx, ecx
mov cx, word [0x413e10]
test ecx, ecx
je 0x409625
xor edx, edx
mov dx, word [0x413bdf]
test edx, edx
je 0x409625
mov ax, word [0x413bdf]
sub ax, 1
mov word [0x413bdf], ax
xor ecx, ecx
mov cx, word [0x413b08]
and ecx, 0xd000
test ecx, ecx
jne 0x409654
xor edx, edx
mov dx, word [0x413b08]
and edx, 0x100
test edx, edx
je 0x409654
mov word [0x413e10], 1
cmp dword [ebp - 0x4c], 1
jne 0x4097b5
xor eax, eax
mov ax, word [0x413e10]
test eax, eax
je 0x4097b5
xor ecx, ecx
mov cx, word [0x413e08]
and ecx, 2
test ecx, ecx
jne 0x409698
cmp dword [0x413e00], 0
je 0x409698
mov dx, word [0x413e08]
or dl, 2
mov word [0x413e08], dx
cmp dword [0x413df8], 0
jne 0x40973e
xor eax, eax
mov ax, word [0x413e08]
and eax, 2
test eax, eax
je 0x40973e
call fcn.0040c790
mov word [0x413c34], ax
xor ecx, ecx
mov cx, word [0x413c34]
test ecx, ecx
je 0x40973e
mov word [0x413e10], 0
xor edx, edx
mov dx, word [0x413c34]
cmp edx, 2
jne 0x409713
xor eax, eax
mov ax, word [0x413e0a]
and eax, 0x2000
test eax, eax
je 0x409713
push 0x1010
push 0x413b7c
mov ecx, dword [0x413c10]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40973e
xor edx, edx
mov dx, word [0x413e0a]
and edx, 0x1000
test edx, edx
je 0x40973e
push 0x1010
push 0x413b7c
mov eax, dword [0x413c70]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
mov cx, word [0x413e08]
and ecx, 1
test ecx, ecx
jne 0x4097b5
cmp dword [0x413dfc], 0
je 0x409780
movsx edx, word [0x413bf1]
test edx, edx
jl 0x409780
movsx eax, word [0x413bf1]
shl eax, 6
mov ecx, dword [0x413afc]
xor edx, edx
mov dx, word [ecx + eax + 0x28]
and edx, 8
test edx, edx
jne 0x4097a4
cmp dword [0x413dfc], 0
je 0x4097b5
movsx eax, word [0x413bf1]
test eax, eax
jge 0x4097b5
xor ecx, ecx
mov cx, word [0x413adc]
and ecx, 8
test ecx, ecx
je 0x4097b5
mov dx, word [0x413e08]
or dl, 1
mov word [0x413e08], dx
xor eax, eax
mov ax, word [0x413e08]
test eax, eax
je 0x409899
cmp dword [ebp - 0x4c], 1
jne 0x409899
xor ecx, ecx
mov cx, word [0x413e10]
test ecx, ecx
je 0x409899
mov edx, 0x413c00
mov ecx, 0x413be1
lea eax, [ebp - 0x74]
push eax
call fcn.0040d9c0
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x60], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x5c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x64]
mov dword [0x413be1], eax
mov ecx, dword [ebp - 0x60]
mov dword [0x413be5], ecx
mov edx, dword [ebp - 0x5c]
mov dword [0x413be9], edx
mov eax, dword [ebp - 0x58]
mov dword [0x413bed], eax
call fcn.0040bcb0
test eax, eax
jne 0x409844
mov edx, 0x4102d0
mov ecx, 0x4102b4
call fcn.0040d450
mov ecx, dword [ebp + 0x10]
call fcn.0040d1c0
test eax, eax
je 0x409876
call fcn.0040d140
mov dword [ebp - 0x4c], eax
push 0
push 0
push 0x10
mov ecx, dword [0x413c38]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov word [0x413e10], 0
jmp 0x409899
mov dword [ebp - 0x4c], 0
mov word [0x413e10], 0
push 0
push 0
push 0x10
mov edx, dword [0x413c38]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x50]
call fcn.004099c0
mov dword [ebp - 4], eax
push 0
push 0
push 0x10
mov eax, dword [0x413c38]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x413e0c], 2
je 0x409911
cmp dword [ebp - 0x4c], 1
jne 0x409911
xor ecx, ecx
mov cx, word [0x413e10]
test ecx, ecx
je 0x409911
xor edx, edx
mov dx, word [0x413c74]
cmp edx, 0x8005
je 0x409911
mov eax, dword [ebp + 8]
push eax
push 0x410288
call dword [sym.imp.USER32.dll_UnregisterClassA]
xor ecx, ecx
mov cx, word [0x410298]
test ecx, ecx
je 0x409911
mov edx, dword [ebp - 0x54]
push edx
lea edx, [ebp - 0x50]
mov ecx, dword [ebp - 4]
call fcn.00409940
cmp dword [ebp - 0x50], 0
je 0x40991f
mov ecx, dword [ebp - 0x50]
call fcn.0040d440
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x40936e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10