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

Disassembly:
push 0xa4
mov eax, 0x553659
call fcn.0054f7b0
mov edi, ecx
and dword [ebp - 4], 0
mov ebx, dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
push 0x168
call ebx
mov esi, eax
pop ecx
mov dword [ebp - 0x90], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x405b93
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004075e3
mov ecx, esi
call fcn.004145b3
jmp 0x405b95
xor eax, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
push eax
call fcn.0040c678
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
push dword [edi + 0x1c]
and dword [ebp - 0x24], 0
push dword [edi + 0x18]
and dword [ebp - 0x20], 0
call fcn.0040c6f9
mov esi, dword [ebp - 0x2c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
lea ecx, [esi + 0x40]
call fcn.0040c6f9
lea ecx, [ebp - 0x24]
call fcn.004078de
push ecx
push ecx
lea eax, [edi + 0x44]
mov ecx, esp
push eax
call fcn.00402ce0
push ecx
push ecx
lea eax, [edi + 0x3c]
mov ecx, esp
push eax
call fcn.00402ce0
push ecx
push ecx
lea eax, [edi + 0x20]
mov ecx, esp
push eax
call fcn.00402ce0
push ecx
push ecx
lea eax, [edi + 0x10]
mov ecx, esp
push eax
call fcn.00402ce0
push ecx
push ecx
lea eax, [edi + 8]
mov ecx, esp
push eax
call fcn.00402ce0
push dword [edi + 0x94]
mov ecx, esi
call fcn.004148ff
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x1c], eax
push 0x14
mov byte [ebp - 4], 3
call ebx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x405c4d
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_alloc_void_]
mov al, byte [ebp - 0x20]
mov dword [ecx], 0x56fe1c
mov dword [ecx + 4], 0x4060c2
mov byte [ecx + 8], al
mov dword [ecx + 0xc], edi
mov dword [ebp - 0x7c], ecx
lea eax, [esi + 0x78]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
cmp eax, ecx
je 0x405c8d
mov ecx, eax
call fcn.0040265d
lea eax, [ebp - 0x8c]
push eax
lea ecx, [esi + 0x78]
call fcn.00402e49
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.0040265d
lea ecx, [ebp - 0x8c]
call fcn.0040265d
and dword [ebp - 0x64], 0
lea eax, [ebp - 0x74]
mov dword [ebp - 0x1c], eax
push 0x14
mov byte [ebp - 4], 5
call ebx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x405c47
mov al, byte [ebp - 0x20]
mov dword [ecx], 0x56fdac
mov dword [ecx + 4], 0x4060b0
mov byte [ecx + 8], al
mov dword [ecx + 0xc], edi
mov dword [ebp - 0x64], ecx
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x90]
call fcn.004025d1
mov ecx, dword [esi + 0xa0]
mov byte [ebp - 0x14], 0
test ecx, ecx
jne 0x405d00
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_function_call_void_]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x405d25
mov edx, dword [ecx]
lea eax, [ebp - 0x74]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1c], eax
push 0x14
mov byte [ebp - 4], 7
call ebx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x405c47
mov al, byte [ebp - 0x20]
mov dword [ecx], 0x56ff00
mov dword [ecx + 4], 0x406a40
mov byte [ecx + 8], al
mov dword [ecx + 0xc], edi
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 8
lea eax, [ebp - 0x44]
mov ebx, dword [ebp - 0x2c]
lea esi, [ebx + 0xd8]
cmp esi, eax
je 0x405d98
mov ecx, esi
call fcn.0040265d
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x405d82
and dword [esi + 0x10], ecx
jmp 0x405d95
lea eax, [ebp - 0x44]
cmp ecx, eax
mov eax, dword [ecx]
jne 0x405d8e
push esi
jmp 0x405d90
push 0
call dword [eax]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x405db1
mov edx, dword [ecx]
lea eax, [ebp - 0x44]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x570004
mov dword [ebp - 0x58], 0x406c72
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x4c], ecx
lea esi, [ebx + 0xf0]
mov byte [ebp - 4], 0xa
mov eax, ecx
cmp esi, eax
je 0x405ded
mov ecx, esi
call fcn.0040265d
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.00402e49
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x405e06
mov edx, dword [ecx]
lea eax, [ebp - 0x5c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004050a1
push ecx
push eax
mov edx, 0x40757d
lea ecx, [ebp - 0x6c]
call fcn.0040a590
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0xc
call fcn.0040a5b4
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebx + 0x150]
call fcn.004025d1
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x405e71
mov edx, dword [ecx]
lea eax, [ebp - 0xac]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
and dword [ebp - 0x9c], 0
lea ecx, [ebp - 0x64]
call fcn.004078de
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004078de
lea esi, [edi + 0x30]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x2c]
cmp ecx, eax
jae 0x405eb8
cmp dword [esi], ecx
ja 0x405eb8
mov edi, ecx
sub edi, dword [esi]
sar edi, 3
cmp eax, dword [esi + 8]
jne 0x405eaa
push ecx
mov ecx, esi
call fcn.00409051
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea eax, [eax + edi*8]
test ecx, ecx
je 0x405ed5
jmp 0x405ecf
cmp eax, dword [esi + 8]
jne 0x405ec5
push ecx
mov ecx, esi
call fcn.00409051
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x405ed5
lea eax, [ebp - 0x2c]
push eax
call fcn.00403003
add dword [esi + 4], 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x405ee9
call fcn.00402744
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00401c56
call fcn.0054f77e
ret 0x18