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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x24], 0
mov esi, ecx
mov dword [esp + 0x20], ebx
push edi
xor eax, eax
mov dword [esp + 0x2c], eax
mov edi, dword [esi + 8]
mov dword [esp + 0x14], edi
mov byte [ebx], 1
call fcn.00436cb0
cmp dword [ebx + 0x24], 0
mov ebp, dword [ebx + 0x20]
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], ebp
jg 0x459904
mov ebp, edi
mov ecx, esi
call fcn.00436cb0
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov edi, dword [eax + 0x14]
cmp dword [eax + 0x1c], ebx
jle 0x4598d0
add edi, 0x14
mov ebp, eax
lea ecx, [ecx]
push dword [edi - 4]
mov edx, dword [edi]
mov ecx, esi
call fcn.00437f80
inc ebx
lea edi, [edi + 0x18]
add esp, 4
cmp ebx, dword [ebp + 0x1c]
jl 0x4598b0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, esi
mov byte [eax], 0
call fcn.00436cb0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4598f5
js 0x4598f5
mov edx, dword [ebp + 0x1c]
cmp edx, eax
jbe 0x4598f5
lea ecx, [eax + eax*4]
mov eax, dword [ebp + 4]
mov dword [eax + ecx*4 + 8], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, dword [esp + 0x14]
mov eax, dword [ebp]
mov dword [esp + 0x30], 0
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x45995b
mov edx, dword [ebx]
mov ecx, dword [esi + 0x3c]
mov ebp, dword [esi + 0x40]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebp
cmp edx, ecx
jg 0x459937
lea eax, [edx + ebp]
sub ecx, edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], ecx
jmp 0x459946
mov eax, dword [esi + 0x4c]
lea ebp, [eax + 1]
add eax, edx
mov dword [esp + 0x18], ebp
mov dword [esi + 0x4c], eax
push 1
push ebp
mov edx, ebx
mov ecx, esi
call fcn.004382a0
mov ebp, dword [esp + 0x28]
add esp, 8
jmp 0x45996b
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
cmp dword [ebp + 0xc], 0
jl 0x4599f7
mov edi, dword [edi + 0x24]
mov edx, dword [esp + 0x14]
lea eax, [edi + 1]
mov dword [edx + 0x24], eax
lea eax, [edi - 1]
test edi, eax
jne 0x4599c8
mov ecx, dword [edx + 0x28]
lea eax, [edi*8 + 4]
mov ebp, dword [edx]
mov edx, ecx
mov dword [esp + 0x30], ecx
mov ecx, ebp
push eax
mov dword [esp + 0x3c], ebp
call fcn.00407290
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4599bd
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
call fcn.00406fc0
mov edx, dword [esp + 0x14]
mov dword [edx + 0x28], ebp
mov ebp, dword [esp + 0x20]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x4599d6
mov dword [eax + edi*4], 0xffffffff
push dword [esp + 0x18]
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
sub eax, edi
mov ecx, esi
push 1
push eax
mov dword [esp + 0x3c], eax
call fcn.00452f70
mov edi, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [ebp + 4]
test byte [eax + 2], 0x20
je 0x459b14
mov ebx, dword [ebx + 8]
xor ebp, ebp
xor edi, edi
jmp 0x459a10
cmp edi, dword [esp + 0x1c]
jge 0x459a2b
mov edx, dword [ebx]
mov ecx, esi
call fcn.00433dd0
mov ebp, eax
inc edi
add ebx, 0x18
test ebp, ebp
je 0x459a10
jmp 0x459a34
test ebp, ebp
jne 0x459a34
mov eax, dword [esi]
mov ebp, dword [eax + 8]
cmp dword [esp + 0x28], 0
jne 0x459a4f
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x1c], 0
je 0x459a4f
inc dword [esi + 0x4c]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x14]
mov ebx, dword [edi + 0x1c]
mov eax, dword [edi + 0x20]
cmp eax, ebx
jg 0x459acd
test eax, eax
je 0x459a65
add eax, eax
jmp 0x459a6a
mov eax, 0x33
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
mov ecx, dword [edi]
shl eax, 2
push eax
call fcn.00407290
mov edi, eax
add esp, 4
test edi, edi
je 0x459b30
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
test ecx, ecx
je 0x459aab
cmp edi, dword [ecx + 0x10c]
jb 0x459aab
cmp edi, dword [ecx + 0x110]
jae 0x459aab
movzx ecx, word [ecx + 0xf0]
jmp 0x459ab7
push edi
call dword [0x510f4c]
add esp, 4
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x14]
shr edx, 4
mov dword [eax + 4], edi
mov edi, eax
mov dword [eax + 0x20], edx
mov eax, dword [edi + 4]
lea ecx, [ebx + ebx*4]
inc dword [edi + 0x1c]
mov edx, dword [esp + 0x28]
mov word [eax + ecx*4], 0x1f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffffc
push ebp
mov edx, ebx
mov ecx, edi
call fcn.00424350
mov ebp, dword [esp + 0x28]
add esp, 8
mov eax, dword [ebp + 4]
mov ebx, dword [edi + 0x1c]
mov ebp, dword [ebp + 8]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x20]
cmp eax, ebx
jg 0x459ba3
test eax, eax
je 0x459b3b
add eax, eax
jmp 0x459b40
mov edi, dword [esp + 0x14]
mov ebx, 1
jmp 0x459b01
mov eax, 0x33
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
mov ecx, dword [edi]
shl eax, 2
push eax
call fcn.00407290
mov edi, eax
add esp, 4
test edi, edi
je 0x459d10
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
test ecx, ecx
je 0x459b81
cmp edi, dword [ecx + 0x10c]
jb 0x459b81
cmp edi, dword [ecx + 0x110]
jae 0x459b81
movzx ecx, word [ecx + 0xf0]
jmp 0x459b8d
push edi
call dword [0x510f4c]
add esp, 4
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x14]
shr edx, 4
mov dword [eax + 4], edi
mov edi, eax
mov dword [eax + 0x20], edx
mov eax, dword [edi + 4]
lea ecx, [ebx + ebx*4]
inc dword [edi + 0x1c]
mov edx, dword [esp + 0x18]
mov word [eax + ecx*4], 8
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffffb
push dword [esp + 0x3c]
mov edx, ebx
mov ecx, edi
call fcn.00424350
mov ecx, dword [edi + 4]
add esp, 8
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x459bfa
mov eax, dword [edi + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], dl
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x78]
mov edi, 0xa
lea ebx, [eax - 1]
add ebx, edx
jmp 0x459c10
mov edx, dword [ecx]
cmp edx, eax
jl 0x459c3f
cmp edx, ebx
jg 0x459c3f
cmp byte [ecx - 8], 0
je 0x459c39
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x459c31
movzx eax, al
mov dword [esi + eax*4 + 0x1c], edx
inc byte [esi + 0x13]
mov eax, dword [esp + 0x18]
mov byte [ecx - 8], 0
mov dword [ecx], 0
add ecx, 0x18
dec edi
jne 0x459c10
lea ecx, [esi + 0x78]
mov edi, 0xa
lea ecx, [ecx]
mov edx, dword [ecx]
cmp edx, eax
jl 0x459c7f
cmp edx, ebx
jg 0x459c7f
cmp byte [ecx - 8], 0
je 0x459c79
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x459c71
movzx eax, al
mov dword [esi + eax*4 + 0x1c], edx
inc byte [esi + 0x13]
mov eax, dword [esp + 0x18]
mov byte [ecx - 8], 0
mov dword [ecx], 0
add ecx, 0x18
dec edi
jne 0x459c50
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esi + 0x3c]
jle 0x459c94
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x459cbb
or ecx, 0xffffffff
sub ecx, eax
js 0x459cb4
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x28]
test edx, edx
je 0x459cb4
mov eax, dword [eax + 0x1c]
mov dword [edx + ecx*4], eax
mov ecx, esi
call fcn.00436cb0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
inc ecx
mov ebp, dword [esp + 0x20]
add ebp, 0x10
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], ebp
cmp ecx, dword [eax + 0x24]
jl 0x459900
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x459893
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x2c], ebx
cmp dword [ebp + 0x20], ebx
jg 0x459d1e
mov ecx, ebp
call fcn.00423c70
test eax, eax
je 0x459d1e
mov dword [esp + 0x2c], 1
jmp 0x459893
mov edi, dword [esp + 0x14]
mov ebx, 1
jmp 0x459bd3
mov eax, dword [ebp + 4]
lea ecx, [ebx + ebx*4]
inc dword [ebp + 0x1c]
mov word [eax + ecx*4], 0x27
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x459893