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

Disassembly:
push 0xffffffffffffffff
push 0x523d60
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x78]
mov esi, ecx
mov dword [esp + 0x3c], esi
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x4a5734
lea ecx, [ecx]
mov edi, dword [eax + 0x3c]
push eax
call fcn.004fc79f
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x4a5720
mov dword [esi], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4a5755
jmp 0x4a5740
mov edi, dword [eax + 0x3c]
push eax
call fcn.004fc79f
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x4a5740
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4a5775
lea esp, [esp]
mov edi, dword [eax + 0x3c]
push eax
call fcn.004fc79f
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x4a5760
mov dword [esi + 8], ebx
call fcn.004a5680
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x56a5a0
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 0x56a5a8
mov dword [esp + 0x54], 2
mov dword [esp + 0x58], 0x56a5b0
mov dword [esp + 0x20], fcn.004fdc99
mov dword [esp + 0x24], fcn.004fca61
mov dword [esp + 0x28], fcn.004fdda1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0x8000
mov dword [esp + 0x1c], vtable.t_heapT_class_TAllocDefault_.0
mov dword [esp + 0x34], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x70], 1
cmp byte [esp + 0x198], bl
lea eax, [esp + 0x88]
jne 0x4a57f6
mov eax, dword [esp + 0x84]
lea edx, [eax + 4]
push ebp
lea ecx, [esp + 0x20]
call fcn.0046c8b0
test al, al
jne 0x4a5883
mov ecx, ebp
call fcn.00470820
push 0x56a5c4
push 0x551604
push eax
call fcn.0046adf0
mov byte [esp + 0x7c], bl
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x1c], vtable.allocator_unsigned_char__class_TAllocDefault_.0
je 0x4a584c
mov ecx, dword [eax + 4]
push eax
mov dword [esp + 0x30], ecx
call dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add esp, 4
cmp eax, ebx
jne 0x4a5835
cmp byte [esp + 0x198], bl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x7c], vtable.t_str.0
jne 0x4a587c
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x88]
cmp eax, edx
je 0x4a587c
push eax
call fcn.004fdda1
add esp, 4
xor al, al
jmp 0x4a59bf
xor esi, esi
mov dword [esp + 0x18], esi
lea esp, [esp]
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
mov eax, dword [esp + esi*8 + 0x48]
je 0x4a5952
mov dword [esp + 0x40], eax
lea eax, [esp + 0x5c]
push eax
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x48]
push eax
lea edi, [esp + 0x70]
mov eax, ecx
call fcn.0046d570
cmp eax, ebx
je 0x4a5952
mov ebp, dword [eax + 4]
cmp ebp, ebx
je 0x4a5952
xor eax, eax
cmp dword [ebp + 4], ebx
je 0x4a58f8
mov edx, dword [ebp + 8]
cmp edx, ebx
jbe 0x4a58f6
mov edi, dword [ebp]
mov ecx, edi
cmp dword [ecx], ebx
jne 0x4a59d5
add eax, 1
add ecx, 4
cmp eax, edx
jb 0x4a58e4
xor eax, eax
cmp eax, ebx
mov edi, eax
je 0x4a5952
mov esi, dword [esp + esi*8 + 0x44]
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi]
push ecx
mov ecx, dword [edi + 4]
mov eax, esi
call fcn.004a5b90
mov ecx, dword [edi + 8]
cmp ecx, ebx
jne 0x4a5948
mov eax, dword [edi + 0xc]
mov edi, dword [ebp + 8]
xor edx, edx
div edi
xor ecx, ecx
add edx, 1
lea esp, [esp]
cmp edx, edi
jae 0x4a5948
mov eax, dword [ebp]
cmp dword [eax + edx*4], ebx
lea eax, [eax + edx*4]
je 0x4a5941
mov ecx, dword [eax]
add edx, 1
cmp ecx, ebx
je 0x4a5930
cmp ecx, ebx
mov edi, ecx
jne 0x4a5902
mov esi, dword [esp + 0x18]
add esi, 1
cmp esi, 3
mov dword [esp + 0x18], esi
jb 0x4a5890
mov byte [esp + 0x70], bl
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [esp + 0x1c], vtable.allocator_unsigned_char__class_TAllocDefault_.0
je 0x4a598d
mov ecx, dword [eax + 4]
push eax
mov dword [esp + 0x30], ecx
call dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add esp, 4
cmp eax, ebx
jne 0x4a5976
cmp byte [esp + 0x198], bl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x7c], vtable.t_str.0
jne 0x4a59bd
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x88]
cmp eax, edx
je 0x4a59bd
push eax
call fcn.004fdda1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x128
mov eax, dword [edi + eax*4]
jmp 0x4a58f8