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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bd861
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4fe320]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x4fe320]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], 0
call fcn.0047afe0
mov cl, al
mov eax, dword [0x504fb8]
test al, 1
jne 0x40b3b8
or eax, 1
mov dword [0x504fb8], eax
test cl, cl
mov dword [esp + 0xd8], 0
mov eax, str.common_msg_noice48.png
mov dword [esp + 0x14], 2
mov esi, str.commonEnalarge_msg_noice48.png
lea ecx, [esp + 0x54]
cmove esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
movq qword [0x504fbc], xmm0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], esi
push eax
call fcn.0040c340
lea eax, [esp + 0x14]
mov byte [esp + 0xd8], 1
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x18], esi
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x24], 0
call fcn.0040c340
lea eax, [esp + 0x14]
mov byte [esp + 0xd8], 2
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x18], esi
push eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x24], 1
call fcn.0040c340
mov byte [esp + 0xd8], 3
lea ecx, [esp + 0xac]
push 0x11
xor eax, eax
mov dword [esp + 0xac], 3
push str.common_msg_ok.png
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], 0
mov word [esp + 0xb4], ax
call fcn.00409650
lea eax, [esp + 0xc4]
mov byte [esp + 0xd8], 4
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.0040b5b0
push fcn.0040b4c0
push 4
push 0x1c
lea eax, [esp + 0x60]
mov byte [esp + 0xe4], 0
push eax
call fcn.004bbd05
push 0x4c99c0
call fcn.004bbcf0
mov dword [esp + 0xdc], 0xffffffff
add esp, 4
mov esi, dword [esp + 0x18]
mov edx, dword [0x504fbc]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x40b3f1
lea esp, [esp]
cmp dword [eax + 0x10], edi
jge 0x40b3da
mov eax, dword [eax + 8]
jmp 0x40b3de
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x40b3d0
cmp ecx, edx
je 0x40b3f1
mov dword [esp + 0x18], ecx
cmp edi, dword [ecx + 0x10]
jge 0x40b3f5
mov dword [esp + 0x18], edx
lea eax, [esp + 0x18]
mov eax, dword [eax]
cmp eax, edx
je 0x40b431
xor ecx, ecx
mov dword [esp + 0x34], 7
push 0xffffffffffffffff
push ecx
add eax, 0x14
mov word [esp + 0x28], cx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0
call fcn.004092b0
lea eax, [esp + 0x20]
mov ebx, 1
jmp 0x40b444
push 0x4d38dc
lea ecx, [esp + 0x40]
call fcn.00409750
mov ebx, 2
push eax
mov ecx, esi
call fcn.00409060
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
or ebx, 4
test bl, 2
je 0x40b484
and ebx, 0xfffffffd
cmp dword [esp + 0x50], 8
jb 0x40b46d
push dword [esp + 0x3c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
test bl, 1
je 0x40b499
cmp dword [esp + 0x34], 8
jb 0x40b499
push dword [esp + 0x20]
call edi
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.004bbbfc
mov esp, ebp
pop ebp
ret