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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bf7c1
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x501320]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x501320]
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.0047cfb0
mov cl, al
mov eax, dword [0x507ea8]
test al, 1
jne 0x40b448
or eax, 1
mov dword [0x507ea8], 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 [0x507eac], xmm0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], esi
push eax
call fcn.0040c3d0
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.0040c3d0
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.0040c3d0
mov byte [esp + 0xd8], 3
lea ecx, [esp + 0xac]
push 0x13
xor eax, eax
mov dword [esp + 0xac], 3
push str.common_msg_ok48.png
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], 0
mov word [esp + 0xb4], ax
call fcn.004096f0
lea eax, [esp + 0xc4]
mov byte [esp + 0xd8], 4
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.0040b640
push fcn.0040b550
push 4
push 0x1c
lea eax, [esp + 0x60]
mov byte [esp + 0xe4], 0
push eax
call fcn.004bdc75
push 0x4cbaf0
call fcn.004bdc60
mov dword [esp + 0xdc], 0xffffffff
add esp, 4
mov esi, dword [esp + 0x18]
mov edx, dword [0x507eac]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x40b481
lea esp, [esp]
cmp dword [eax + 0x10], edi
jge 0x40b46a
mov eax, dword [eax + 8]
jmp 0x40b46e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x40b460
cmp ecx, edx
je 0x40b481
mov dword [esp + 0x18], ecx
cmp edi, dword [ecx + 0x10]
jge 0x40b485
mov dword [esp + 0x18], edx
lea eax, [esp + 0x18]
mov eax, dword [eax]
cmp eax, edx
je 0x40b4c1
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.00409350
lea eax, [esp + 0x20]
mov ebx, 1
jmp 0x40b4d4
push 0x4d58ec
lea ecx, [esp + 0x40]
call fcn.004097f0
mov ebx, 2
push eax
mov ecx, esi
call fcn.00409100
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
or ebx, 4
test bl, 2
je 0x40b514
and ebx, 0xfffffffd
cmp dword [esp + 0x50], 8
jb 0x40b4fd
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 0x40b529
cmp dword [esp + 0x34], 8
jb 0x40b529
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.004bdb6c
mov esp, ebp
pop ebp
ret