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

Disassembly:
push 0xffffffffffffffff
push 0x4d8a60
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51b260]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
lea eax, [ebx + 0xa4]
push eax
lea ecx, [ebx + 0x3c]
call fcn.004227d0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
or eax, 0xffffffff
xor esi, esi
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x74]
mov dword [esp + 0x54], edx
mov dword [esp + 0x24], 0x4dc264
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], esi
call fcn.00457cf0
mov eax, dword [ebx + 0x244]
sub eax, dword [ebx + 0x240]
mov dword [esp + 0xc8], esi
mov esi, dword [ebx + 0x9c]
sar eax, 2
cmp esi, eax
jb 0x4595ca
call fcn.0049eacd
mov ecx, dword [ebx + 0x240]
mov edx, dword [ecx + esi*4]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], edx
call fcn.00457cf0
mov esi, dword [ebx + 0xe8]
lea ebp, [ebx + 0xd8]
mov byte [esp + 0xc8], 1
cmp dword [ebp + 0xc], esi
jbe 0x4595fe
call fcn.0049eacd
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp]
mov dword [esp + 0x18], eax
cmp edi, dword [ebp + 0x10]
jbe 0x459612
call fcn.0049eacd
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp]
push esi
push ecx
push edi
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, ebp
call fcn.0042ae50
mov edi, dword [ebx + 0x118]
cmp dword [ebx + 0x114], edi
lea esi, [ebx + 0x108]
jbe 0x459642
call fcn.0049eacd
mov ebp, dword [esi + 0xc]
mov ebx, dword [esi]
cmp ebp, dword [esi + 0x10]
jbe 0x459651
call fcn.0049eacd
mov eax, dword [esi]
push edi
push ebx
push ebp
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00436e00
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x130]
add eax, 0x120
mov dword [esp + 0x58], eax
cmp dword [eax + 0xc], esi
jbe 0x459680
call fcn.0049eacd
mov ebx, dword [esp + 0x58]
mov edi, dword [ebx + 0xc]
mov ebp, dword [ebx]
cmp edi, dword [ebx + 0x10]
jbe 0x459693
call fcn.0049eacd
mov eax, dword [ebx]
push esi
push ebp
push edi
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.00436e00
mov ebx, dword [esp + 0x14]
mov esi, dword [ebx + 0x148]
add ebx, 0x138
cmp dword [ebx + 0xc], esi
jbe 0x4596bf
call fcn.0049eacd
mov edi, dword [ebx + 0xc]
mov ebp, dword [ebx]
cmp edi, dword [ebx + 0x10]
jbe 0x4596ce
call fcn.0049eacd
mov eax, dword [ebx]
push esi
push ebp
push edi
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.00436e00
mov ebx, dword [esp + 0x14]
mov esi, dword [ebx + 0x160]
add ebx, 0x150
cmp dword [ebx + 0xc], esi
jbe 0x4596fa
call fcn.0049eacd
mov edi, dword [ebx + 0xc]
mov ebp, dword [ebx]
cmp edi, dword [ebx + 0x10]
jbe 0x459709
call fcn.0049eacd
mov eax, dword [ebx]
push esi
push ebp
push edi
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call fcn.00436e00
mov ebx, dword [esp + 0x14]
mov esi, dword [ebx + 0x178]
add ebx, 0x168
cmp dword [ebx + 0xc], esi
jbe 0x459735
call fcn.0049eacd
mov edi, dword [ebx + 0xc]
mov ebp, dword [ebx]
cmp edi, dword [ebx + 0x10]
jbe 0x459744
call fcn.0049eacd
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x168]
push esi
push ebp
lea ecx, [ebx + 0x168]
push edi
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00436e00
mov esi, dword [ebx + 0xe8]
add ebx, 0xd8
cmp dword [ebx + 0xc], esi
jbe 0x459778
call fcn.0049eacd
mov edi, dword [ebx + 0xc]
mov ebp, dword [ebx]
cmp edi, dword [ebx + 0x10]
jbe 0x459787
call fcn.0049eacd
mov eax, dword [ebx]
push esi
push ebp
push edi
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call fcn.0042ae50
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x1a8]
add eax, 0x198
cmp dword [eax + 0xc], esi
jbe 0x4597b2
call fcn.0049eacd
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x1a4]
mov ebp, dword [eax + 0x198]
add eax, 0x198
cmp edi, dword [eax + 0x10]
jbe 0x4597d1
call fcn.0049eacd
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x198]
push esi
push ebp
add ecx, 0x198
push edi
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00420920
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x2c], 0
mov dword [esp + 0x4c], 0
jle 0x459bf9
xor eax, eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x18], 1
mov dword [esp + 0x48], eax
lea esp, [esp]
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x18]
mov edi, dword [esp + 0x4c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x459858
call fcn.0049eacd
mov eax, dword [esi + 0x18]
mov ebp, dword [esp + 0x48]
mov ecx, dword [eax + ebp + 0x10]
sub ecx, dword [eax + ebp + 0xc]
add eax, ebp
mov eax, 0x38e38e39
imul ecx
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x18]
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x45989a
call fcn.0049eacd
mov ecx, dword [esi + 0x18]
add ecx, ebp
push ecx
lea ecx, [esp + 0x78]
call fcn.0040e1a0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov ebp, eax
cmp ecx, eax
jbe 0x4598c4
call fcn.0049eacd
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x5c]
mov edi, ecx
cmp ecx, eax
jbe 0x4598d3
call fcn.0049eacd
mov edx, dword [esp + 0x5c]
push ebp
push esi
push edi
push edx
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x70]
call fcn.0040c6c0
xor esi, esi
test ebx, ebx
jle 0x459a4e
mov ebp, dword [esp + 0x50]
lea ebx, [ebx]
xor ecx, ecx
or eax, 0xffffffff
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x84]
sub ecx, dword [esp + 0x80]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x45994d
call fcn.0049eacd
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x24]
lea edi, [esi + esi*8]
add edi, edi
add edi, edi
add edx, edi
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x28]
call edx
mov eax, dword [esp + 0x28]
dec eax
cmp eax, 8
ja case.0x459978.4
jmp dword [eax*4 + 0x459cd4]
mov eax, dword [esp + 0x54]
add dword [esp + 0x30], ebp
add dword [esp + 0x34], eax
cmp dword [esp + 0x38], 0xffffd8f1
jne case.0x459978.4
mov dword [esp + 0x28], 0xa
jmp case.0x459978.4
cmp dword [esp + 0x38], 0
je case.0x459978.4
mov ecx, dword [esp + 0x84]
sub ecx, dword [esp + 0x80]
dec dword [esp + 0x38]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x4599dd
call fcn.0049eacd
mov edx, dword [esp + 0x80]
mov eax, dword [edx + edi]
mov eax, dword [eax]
lea ecx, [edx + edi]
lea edx, [esp + 0x24]
push edx
call eax
add esi, dword [esp + 0x2c]
jmp case.0x459978.4
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0xd4]
call fcn.00456370
test eax, eax
jge 0x459a10
neg eax
cdq
idiv dword [esp + 0x34]
mov eax, dword [esp + 0x30]
cmp edx, eax
jge 0x459a25
add eax, edx
mov dword [esp + 0x38], eax
jmp case.0x459978.4
mov dword [esp + 0x38], edx
jmp case.0x459978.4
mov edx, dword [esp + 0x54]
add dword [esp + 0x30], ebp
add dword [esp + 0x34], edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x60]
call fcn.00410090
inc esi
cmp esi, ebx
jl 0x459900
mov edi, dword [esp + 0x58]
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x459a5d
xor eax, eax
jmp 0x459a65
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x459a81
mov dword [esi], 0
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x459aa5
cmp ecx, esi
jbe 0x459a8a
call fcn.0049eacd
mov eax, dword [edi]
lea ecx, [esp + 0x8c]
push ecx
push esi
push eax
lea edx, [esp + 0xac]
push edx
mov ecx, edi
call fcn.00469800
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x144]
lea edi, [ebx + 0x138]
test ecx, ecx
jne 0x459abd
xor eax, eax
jmp 0x459ac5
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x459ae1
mov dword [esi], 0
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x459b05
cmp ecx, esi
jbe 0x459aea
call fcn.0049eacd
mov eax, dword [edi]
lea ecx, [esp + 0x90]
push ecx
push esi
push eax
lea edx, [esp + 0xa4]
push edx
mov ecx, edi
call fcn.00469800
mov ecx, dword [ebx + 0x15c]
lea edi, [ebx + 0x150]
test ecx, ecx
jne 0x459b19
xor eax, eax
jmp 0x459b21
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x459b3d
mov dword [esi], 0xffffffff
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x459b61
cmp ecx, esi
jbe 0x459b46
call fcn.0049eacd
mov eax, dword [edi]
lea ecx, [esp + 0x94]
push ecx
push esi
push eax
lea edx, [esp + 0xc4]
push edx
mov ecx, edi
call fcn.00469800
mov ecx, dword [ebx + 0x174]
lea edi, [ebx + 0x168]
test ecx, ecx
jne 0x459b75
xor eax, eax
jmp 0x459b7d
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x459b99
mov dword [esi], 1
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x459bba
cmp ecx, esi
jbe 0x459ba2
call fcn.0049eacd
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
lea edx, [esp + 0xbc]
push edx
mov ecx, edi
call fcn.00469800
mov esi, ebx
lea eax, [esp + 0x5c]
lea ebx, [esi + 0xd8]
push eax
mov ecx, ebx
call fcn.00413b20
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esi + 0x198]
call fcn.00423a80
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
add dword [esp + 0x48], 0x18
inc eax
cmp eax, dword [edx + 0x2c]
mov dword [esp + 0x4c], eax
jl 0x459830
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x2c]
mov esi, dword [edi + 0x9c]
mov dword [edi + 0x1e4], ecx
mov edx, dword [eax + 0x24]
mov dword [edi + 0x180], edx
mov eax, dword [eax + 0x28]
mov dword [edi + 0x184], eax
mov ecx, dword [edi + 0x244]
sub ecx, dword [edi + 0x240]
sar ecx, 2
cmp esi, ecx
jb 0x459c3a
call fcn.0049eacd
mov edx, dword [edi + 0x240]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax + 8]
mov dword [edi + 0x1e0], ecx
mov ecx, ebx
call fcn.00459370
mov eax, dword [esp + 0x68]
xor esi, esi
cmp eax, esi
je 0x459c66
push eax
call fcn.0048dd02
add esp, 4
mov edx, dword [esp + 0x5c]
push edx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
call fcn.0048dd02
mov eax, dword [esp + 0x84]
add esp, 4
cmp eax, esi
je 0x459c93
push eax
call fcn.0048dd02
add esp, 4
mov eax, dword [esp + 0x74]
push eax
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
call fcn.0048dd02
add esp, 4
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret 4