Function at 0x40356b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x480fc6
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x49e0b0]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push esi
push edi
mov eax, dword [0x49e0b0]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
lea eax, [esp + 0x70]
mov esi, edx
push eax
mov dword [esp + 0x18], esi
call fcn.00410030
push eax
lea eax, [esp + 0xac]
xor ebx, ebx
push eax
mov dword [esp + 0x320], ebx
call fcn.00426df6
pop ecx
pop ecx
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [esp + 0x78]
mov byte [esp + 0x320], 2
call fcn.00404863
cmp dword [esp + 0xbc], ebx
jne 0x40360b
push 0x10
push 0x486298
push 0x486908
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403947
push ebx
push ebx
lea eax, [esp + 0x24]
call fcn.0041ebf1
push eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x31c], 5
call fcn.004017b3
pop ecx
test al, al
je 0x403923
cmp byte [esp + 0x24], 7
jne 0x403923
push 0x48693c
lea ecx, [esp + 0x3c]
call fcn.004044d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x485f3b
mov byte [esp + 0x338], 6
call fcn.004044d0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x100]
push eax
lea esi, [esp + 0x40]
call fcn.004018e4
add esp, 0x24
push ebx
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x320], 8
call fcn.00404863
push 0x486940
lea ecx, [esp + 0x58]
call fcn.004044d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x485f3b
mov byte [esp + 0x338], 9
call fcn.004044d0
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xe4]
push eax
call fcn.004018e4
add esp, 0x24
push ebx
push edi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x320], 0xb
call fcn.00404863
cmp dword [esp + 0xf4], ebx
je 0x403769
lea eax, [esp + 0x38]
push eax
call fcn.004137e3
pop ecx
mov ecx, eax
lea eax, [esp + 0xe0]
mov byte [esp + 0x318], 0xc
call fcn.00405b71
neg al
sbb al, al
push ebx
inc al
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b], al
mov byte [esp + 0x320], 0xb
call fcn.00404863
cmp byte [esp + 0x13], bl
je 0x403769
push 0x10
push 0x486298
push 0x48694c
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push edi
lea ecx, [esp + 0xcc]
call fcn.00404863
push ebx
push edi
lea ecx, [esp + 0xe8]
call fcn.00404863
jmp 0x403936
cmp dword [esp + 0xd8], ebx
je 0x4038e4
xor eax, eax
push 0x206
mov word [esp + 0x100], ax
lea eax, [esp + 0x102]
push ebx
push eax
call fcn.004667e0
add esp, 0xc
push ebx
lea eax, [esp + 0x100]
push eax
push 0x40
push edi
push 0x486964
push 0x65
push dword [0x4a2e38]
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, 0x104
jmp 0x403877
cmp word [esp + 0xfc], bx
je 0x403837
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0040126f
lea ecx, [esp + 0x104]
push ecx
mov byte [esp + 0x324], 0xe
call fcn.00405dc5
add esp, 0xc
neg al
sbb al, al
push ebx
inc al
push 1
lea esi, [esp + 0x94]
mov byte [esp + 0x1b], al
mov byte [esp + 0x320], 0xb
call fcn.00404960
cmp byte [esp + 0x13], bl
je 0x4038e1
push 0x10
push 0x486298
push 0x4869a4
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
push 0x206
mov word [esp + 0x100], ax
lea eax, [esp + 0x102]
push ebx
push eax
call fcn.004667e0
add esp, 0xc
push ebx
lea eax, [esp + 0x100]
push eax
push 0x40
push 1
push 0x486964
push 0x65
push dword [0x4a2e38]
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 0x486974
push dword [esp + 0x30]
push dword [0x4a2e38]
call fcn.004275a0
add esp, 0x24
test eax, eax
jne 0x4037bf
push 0x30
push 0x48699c
push 0x486984
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea ecx, [esp + 0xcc]
call fcn.00404863
push ebx
push 1
lea ecx, [esp + 0xe8]
call fcn.00404863
lea esi, [esp + 0x1c]
mov byte [esp + 0x318], 2
call fcn.0041de24
push ebx
push 1
jmp 0x403949
xor edi, edi
inc edi
push ebx
push edi
lea ecx, [esp + 0xcc]
call fcn.00404863
push ebx
push edi
lea ecx, [esp + 0xe8]
call fcn.00404863
lea esi, [esp + 0x1c]
mov byte [esp + 0x318], 2
call fcn.0041de24
push ebx
push edi
lea ecx, [esp + 0xb0]
call fcn.00404863
mov eax, edi
jmp 0x403957
push 0x10
push 0x486298
push 0x48691c
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x1c]
mov byte [esp + 0x318], 2
call fcn.0041de24
push ebx
push edi
lea ecx, [esp + 0xb0]
call fcn.00404863
xor eax, eax
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.00464d54
mov esp, ebp
pop ebp
ret