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

Disassembly:
push 0xffffffffffffffff
push 0x4da418
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [esp + 0x78]
mov ebp, dword [edx + 4]
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x68], 0
mov eax, dword [edi + 8]
mov ebx, 1
test eax, eax
je 0x45c55e
mov eax, dword [eax + 0xc]
inc ebx
test eax, eax
jne 0x45c556
mov eax, 0x4ed9d8
lea esi, [esp + 0x40]
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], eax
mov byte [esp + 0x4c], 0
mov dword [esp + 0x50], eax
mov byte [esp + 0x54], 0
mov dword [esp + 0x58], eax
mov byte [esp + 0x5c], 0
mov dword [esp + 0x14], esi
cmp ebx, 4
jbe 0x45c61e
lea esi, [ebx*8 + 3]
and esi, 0xfffffffc
mov eax, ecx
lea ecx, [eax + esi]
cmp ecx, 0x1000
ja 0x45c5bb
mov esi, dword [ebp]
lea eax, [eax + esi + 4]
mov dword [ebp + 4], ecx
jmp 0x45c5ed
mov eax, esi
cmp esi, 0x1000
ja 0x45c5ca
mov eax, 0x1000
add eax, 4
push eax
call dword [fcn.0050d13c]
add esp, 4
test eax, eax
je 0x45c5f1
mov edx, dword [ebp]
mov dword [eax], edx
mov edx, dword [esp + 0x78]
mov dword [ebp], eax
mov dword [ebp + 4], esi
add eax, 4
test eax, eax
jne 0x45c618
push 1
push 0x50ce04
lea ecx, [esp + 0x30]
call fcn.004b3904
push 0x4f9288
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.004baf8b
mov dword [esp + 0x14], eax
mov esi, eax
mov ecx, dword [edx + 4]
mov edx, dword [edx]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
push ecx
mov ecx, dword [edi + 4]
lea edx, [esp + 0x28]
push edx
call fcn.0045c7d0
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov esi, dword [edi + 8]
test esi, esi
je 0x45c68a
mov edi, dword [esp + 0x14]
add edi, 8
lea ebx, [ebx]
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.0045c7d0
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov esi, dword [esi + 0xc]
add edi, 8
test esi, esi
jne 0x45c660
xor esi, esi
xor ecx, ecx
test ebx, ebx
jbe 0x45c6b6
mov eax, dword [esp + 0x14]
mov eax, dword [eax + ecx*8]
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x45c6a0
sub eax, edi
sar eax, 1
inc ecx
add esi, eax
cmp ecx, ebx
jb 0x45c692
mov ecx, dword [esp + 0x78]
mov edi, dword [ecx]
mov eax, dword [edi + 4]
lea esi, [esi + esi + 5]
and esi, 0xfffffffc
lea ecx, [eax + esi]
cmp ecx, 0x1000
ja 0x45c6de
mov edx, dword [edi]
lea eax, [edx + eax + 4]
mov dword [edi + 4], ecx
mov edi, eax
jmp 0x45c70a
mov eax, esi
cmp esi, 0x1000
ja 0x45c6ed
mov eax, 0x1000
add eax, 4
push eax
call dword [fcn.0050d13c]
add esp, 4
test eax, eax
je 0x45c70e
mov ecx, dword [edi]
mov dword [eax], ecx
mov dword [edi], eax
mov dword [edi + 4], esi
lea edi, [eax + 4]
test edi, edi
jne 0x45c735
push 1
push 0x50ce04
lea ecx, [esp + 0x30]
call fcn.004b3904
push 0x4f9288
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.004baf8b
xor esi, esi
mov edx, edi
test ebx, ebx
jbe 0x45c766
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi*8]
movzx eax, word [ecx]
test ax, ax
je 0x45c761
nop
add ecx, 2
mov word [edx], ax
movzx eax, word [ecx]
add edx, 2
test ax, ax
jne 0x45c750
inc esi
cmp esi, ebx
jb 0x45c740
mov ebx, dword [esp + 0x70]
xor ecx, ecx
mov dword [esp + 0x68], 0xffffffff
mov word [edx], cx
mov eax, dword [ebp]
mov dword [ebx], edi
mov edi, dword [esp + 0x38]
mov byte [ebx + 4], 1
cmp eax, edi
je 0x45c7a2
jmp 0x45c790
mov esi, dword [eax]
push eax
call dword [fcn.0050d140]
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x45c790
mov edx, dword [esp + 0x3c]
mov dword [ebp], edi
mov dword [ebp + 4], edx
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc