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

Disassembly:
push 0xffffffffffffffff
push 0x523b70
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58057c]
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 + 0x40], esi
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x4967e4
lea ecx, [ecx]
mov edi, dword [eax + 0x20]
push eax
call fcn.004fdffb
add esp, 4
mov eax, edi
cmp edi, ebx
jne 0x4967d0
mov dword [esi], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x496805
jmp 0x4967f0
mov edi, dword [eax + 0x20]
push eax
call fcn.004fdffb
add esp, 4
mov eax, edi
cmp edi, ebx
jne 0x4967f0
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x496825
lea esp, [esp]
mov edi, dword [eax + 0x20]
push eax
call fcn.004fdffb
add esp, 4
mov eax, edi
cmp edi, ebx
jne 0x496810
mov dword [esi + 8], ebx
call fcn.00496730
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x567a70
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 0x567a78
mov dword [esp + 0x54], 2
mov dword [esp + 0x58], 0x567a80
mov dword [esp + 0x24], fcn.004fe6e3
mov dword [esp + 0x28], fcn.004ff2b3
mov dword [esp + 0x2c], fcn.004fe606
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x8000
mov dword [esp + 0x20], vtable.t_heap.0
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x70], 1
lea eax, [esp + 0x88]
cmp byte [esp + 0x198], bl
jne 0x4968a6
mov eax, dword [esp + 0x84]
lea edx, [eax + 4]
push ebp
lea ecx, [esp + 0x24]
call fcn.004255f0
test al, al
jne 0x496934
mov ecx, ebp
call fcn.00417c00
push 0x567a94
push 0x55e008
mov edx, eax
call fcn.00419360
mov byte [esp + 0x78], bl
mov eax, dword [esp + 0x38]
add esp, 8
mov dword [esp + 0x20], vtable.allocator_unsigned_char__class_TAllocDefault_.0
cmp eax, ebx
je 0x4968fd
mov ecx, dword [eax + 4]
push eax
mov dword [esp + 0x34], ecx
call dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add esp, 4
cmp eax, ebx
jne 0x4968e6
mov dword [esp + 0x30], ebx
mov dword [esp + 0x7c], vtable.t_str.0
cmp byte [esp + 0x198], bl
jne 0x49692d
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x88]
cmp eax, edx
je 0x49692d
push eax
call fcn.004fe606
add esp, 4
xor al, al
jmp 0x496a6d
xor ebp, ebp
mov dword [esp + 0x1c], ebp
lea ebx, [ebx]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + ebp*8 + 0x48]
cmp ecx, ebx
je 0x496a02
mov dword [esp + 0x18], eax
lea eax, [esp + 0x5c]
push eax
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x20]
push eax
lea edi, [esp + 0x70]
mov eax, ecx
call fcn.00488480
cmp eax, ebx
je 0x496a02
mov esi, dword [eax + 4]
cmp esi, ebx
je 0x496a02
xor eax, eax
cmp dword [esi + 4], ebx
je 0x4969a1
mov edx, dword [esi + 8]
cmp edx, ebx
jbe 0x49699f
mov edi, dword [esi]
mov ecx, edi
cmp dword [ecx], ebx
jne 0x4969cd
inc eax
add ecx, 4
cmp eax, edx
jb 0x496993
xor eax, eax
mov edi, eax
cmp eax, ebx
je 0x496a02
mov ecx, dword [esp + ebp*8 + 0x44]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 4]
push edx
mov edx, dword [edi]
call fcn.00496ce0
mov ebp, dword [esi + 8]
cmp ebp, ebx
jne 0x4969d2
xor ecx, ecx
jmp 0x4969f8
mov eax, dword [edi + eax*4]
jmp 0x4969a1
mov ecx, dword [edi + 8]
cmp ecx, ebx
jne 0x4969f8
mov eax, dword [edi + 0xc]
xor edx, edx
div ebp
xor ecx, ecx
inc edx
cmp edx, ebp
jae 0x4969f8
mov eax, dword [esi]
cmp dword [eax + edx*4], ebx
lea eax, [eax + edx*4]
je 0x4969f3
mov ecx, dword [eax]
inc edx
cmp ecx, ebx
je 0x4969e3
mov edi, ecx
cmp ecx, ebx
jne 0x4969af
mov ebp, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x1c], ebp
cmp ebp, 3
jb 0x496940
mov byte [esp + 0x70], bl
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], vtable.allocator_unsigned_char__class_TAllocDefault_.0
cmp eax, ebx
je 0x496a3b
mov ecx, dword [eax + 4]
push eax
mov dword [esp + 0x34], ecx
call dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add esp, 4
cmp eax, ebx
jne 0x496a24
mov dword [esp + 0x30], ebx
mov dword [esp + 0x7c], vtable.t_str.0
cmp byte [esp + 0x198], bl
jne 0x496a6b
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x88]
cmp eax, edx
je 0x496a6b
push eax
call fcn.004fe606
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