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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
cmp dword [ebp + 0xc], 0xa
mov eax, edx
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x90], eax
push edi
mov dword [esp + 0x7c], esi
jb 0x45a889
mov edx, dword [ebp + 0x10]
add eax, esi
mov dword [esp + 0x90], eax
mov eax, dword [edx]
lea ecx, [edx + 4]
mov dword [esp + 0x80], eax
add edx, 4
mov dword [esp + 0x20], ecx
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
lea eax, [edx + eax*4]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
movzx edx, word [eax + 2]
movzx ecx, word [eax]
movzx ebx, word [eax + 4]
add eax, 6
mov dword [esp + 0x1c], eax
add eax, ecx
mov dword [esp + 0x18], eax
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x94]
add eax, 3
mov dword [esp + 0x10], edx
shr eax, 2
add esi, eax
mov dword [esp + 0x8c], esi
add esi, eax
mov edi, dword [esp + 0x8c]
add eax, esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x34], esi
mov esi, dword [ebp + 0xc]
sub esi, ebx
mov dword [esp + 0x88], eax
sub esi, edx
mov dword [esp + 0x38], edi
sub esi, ecx
mov dword [esp + 0x30], eax
sub esi, 6
cmp esi, dword [ebp + 0xc]
ja 0x45a889
mov edx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
call fcn.00452d60
add esp, 4
cmp eax, 0xffffff88
ja 0x45a88e
push dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
call fcn.00452d60
add esp, 4
cmp eax, 0xffffff88
ja 0x45a88e
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x5c]
push ebx
mov edx, edi
call fcn.00452d60
add esp, 4
cmp eax, 0xffffff88
ja 0x45a88e
push esi
lea edx, [edi + ebx]
lea ecx, [esp + 0x70]
call fcn.00452d60
add esp, 4
cmp eax, 0xffffff88
ja 0x45a88e
mov esi, dword [esp + 0x40]
cmp esi, 0x20
jbe 0x45a10c
mov dword [esp + 0x10], 3
jmp 0x45a177
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
lea eax, [ecx + 4]
cmp edx, eax
jb 0x45a12f
mov eax, esi
mov dword [esp + 0x10], 0
shr eax, 3
sub edx, eax
and esi, 7
jmp 0x45a169
cmp edx, ecx
jne 0x45a141
cmp esi, 0x20
sbb ebx, ebx
add ebx, 2
mov dword [esp + 0x10], ebx
jmp 0x45a177
mov edi, esi
mov dword [esp + 0x10], 0
shr edi, 3
mov eax, edx
sub eax, edi
cmp eax, ecx
jae 0x45a162
mov edi, edx
mov dword [esp + 0x10], 1
sub edi, ecx
imul eax, edi, 0xfffffff8
sub edx, edi
add esi, eax
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edx
mov edi, dword [esp + 0x50]
cmp edi, 0x20
jbe 0x45a18a
mov dword [esp + 0x18], 3
jmp 0x45a1f5
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
lea eax, [ecx + 4]
cmp edx, eax
jb 0x45a1ad
mov eax, edi
mov dword [esp + 0x18], 0
shr eax, 3
sub edx, eax
and edi, 7
jmp 0x45a1e7
cmp edx, ecx
jne 0x45a1bf
cmp edi, 0x20
sbb ecx, ecx
add ecx, 2
mov dword [esp + 0x18], ecx
jmp 0x45a1f5
mov ebx, edi
mov dword [esp + 0x18], 0
shr ebx, 3
mov eax, edx
sub eax, ebx
cmp eax, ecx
jae 0x45a1e0
mov ebx, edx
mov dword [esp + 0x18], 1
sub ebx, ecx
imul eax, ebx, 0xfffffff8
sub edx, ebx
add edi, eax
mov eax, dword [edx]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x24], ebx
cmp ebx, 0x20
jbe 0x45a20c
mov dword [esp + 0x14], 3
jmp 0x45a287
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
lea eax, [ecx + 4]
cmp edx, eax
jb 0x45a22f
mov eax, ebx
mov dword [esp + 0x14], 0
shr eax, 3
sub edx, eax
and ebx, 7
jmp 0x45a275
cmp edx, ecx
jne 0x45a241
cmp ebx, 0x20
sbb eax, eax
add eax, 2
mov dword [esp + 0x14], eax
jmp 0x45a287
mov eax, ebx
mov dword [esp + 0x14], 0
shr eax, 3
mov dword [esp + 0x24], eax
mov eax, edx
sub eax, dword [esp + 0x24]
cmp eax, ecx
jae 0x45a26a
mov eax, edx
mov dword [esp + 0x14], 1
sub eax, ecx
jmp 0x45a26e
mov eax, dword [esp + 0x24]
sub edx, eax
imul eax, eax, 0xfffffff8
add ebx, eax
mov eax, dword [edx]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x64], edx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x28], ecx
cmp ecx, 0x20
jbe 0x45a29b
mov eax, 3
jmp 0x45a30f
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
lea eax, [ebx + 4]
cmp edx, eax
jb 0x45a2c0
mov eax, ecx
and ecx, 7
shr eax, 3
sub edx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x70], ecx
xor eax, eax
jmp 0x45a305
cmp edx, ebx
jne 0x45a2ce
cmp ecx, 0x20
sbb eax, eax
add eax, 2
jmp 0x45a30f
mov eax, ecx
mov ecx, edx
shr eax, 3
mov dword [esp + 0x1c], eax
xor eax, eax
sub ecx, dword [esp + 0x1c]
cmp ecx, ebx
jae 0x45a2ee
mov ecx, edx
mov eax, 1
sub ecx, ebx
jmp 0x45a2f2
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
sub edx, ecx
imul ecx, ecx, 0xfffffff8
add ebx, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x70], ebx
mov ecx, dword [edx]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], edx
or eax, dword [esp + 0x14]
or eax, dword [esp + 0x18]
or eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
cmp edx, ebx
ja 0x45a782
test eax, eax
jne 0x45a77b
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
cmp dword [esp + 0x30], eax
ja 0x45a77b
mov ebx, dword [esp + 0x80]
mov ecx, esi
mov edx, dword [esp + 0x3c]
and ecx, 0x1f
shl edx, cl
neg ebx
mov eax, dword [esp + 0x2c]
and ebx, 0x1f
mov ecx, ebx
mov dword [esp + 0x10], ebx
shr edx, cl
mov ecx, dword [esp + 0x7c]
mov eax, dword [eax + edx*4]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + edx*2]
add esi, eax
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + edx*2 + 1]
add ecx, eax
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x7c], ecx
mov ecx, edi
and ecx, 0x1f
shl edx, cl
mov ecx, ebx
shr edx, cl
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + edx*4]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + edx*2]
add edi, eax
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + edx*2 + 1]
add ecx, eax
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
and ecx, 0x1f
shl edx, cl
mov ecx, ebx
mov ebx, dword [esp + 0x24]
shr edx, cl
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + edx*4]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
and ecx, 0x1f
movzx eax, byte [eax + edx*2]
add ebx, eax
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + edx*2 + 1]
add dword [esp + 0x34], eax
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x2c]
shl edx, cl
mov ecx, dword [esp + 0x10]
shr edx, cl
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + edx*4]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
movzx eax, byte [eax + edx*2]
add ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov ecx, esi
and ecx, 0x1f
movzx eax, byte [eax + edx*2 + 1]
mov edx, dword [esp + 0x3c]
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
shl edx, cl
mov ecx, dword [esp + 0x10]
shr edx, cl
mov eax, dword [eax + edx*4]
mov ecx, dword [esp + 0x7c]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + edx*2]
add eax, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + edx*2 + 1]
add ecx, eax
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x7c], ecx
mov ecx, edi
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x10]
shr edx, cl
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + edx*4]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + edx*2]
add eax, edi
mov edi, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], edi
movzx eax, byte [eax + edx*2 + 1]
mov edx, dword [esp + 0x5c]
add ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov ecx, ebx
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x10]
shr edx, cl
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + edx*4]
mov dword [ecx], eax
movzx eax, byte [esi + edx*2]
add eax, ebx
mov ebx, eax
mov dword [esp + 0x24], eax
movzx eax, byte [esi + edx*2 + 1]
mov edx, dword [esp + 0x6c]
add ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
and ecx, 0x1f
mov dword [esp + 0x60], ebx
shl edx, cl
mov ecx, dword [esp + 0x10]
shr edx, cl
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + edx*4]
mov dword [ecx], eax
mov eax, esi
mov esi, dword [esp + 0x14]
movzx ecx, byte [eax + edx*2]
add ecx, dword [esp + 0x18]
movzx eax, byte [eax + edx*2 + 1]
add dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x70], ecx
cmp esi, 0x20
jbe 0x45a54a
mov dword [esp + 0x14], 3
jmp 0x45a5c7
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
add eax, 4
cmp edx, eax
jb 0x45a56d
mov eax, esi
mov dword [esp + 0x14], 0
shr eax, 3
sub edx, eax
and esi, 7
jmp 0x45a5b9
cmp edx, dword [esp + 0x48]
jne 0x45a581
cmp esi, 0x20
sbb eax, eax
add eax, 2
mov dword [esp + 0x14], eax
jmp 0x45a5c7
mov eax, esi
mov dword [esp + 0x14], 0
shr eax, 3
mov dword [esp + 0x1c], eax
mov eax, edx
sub eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x48]
jae 0x45a5ae
mov eax, edx
mov dword [esp + 0x14], 1
sub eax, dword [esp + 0x48]
jmp 0x45a5b2
mov eax, dword [esp + 0x1c]
sub edx, eax
shl eax, 3
sub esi, eax
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edx
cmp edi, 0x20
jbe 0x45a5d6
mov dword [esp + 0x18], 3
jmp 0x45a653
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
add eax, 4
cmp edx, eax
jb 0x45a5f9
mov eax, edi
mov dword [esp + 0x18], 0
shr eax, 3
sub edx, eax
and edi, 7
jmp 0x45a645
cmp edx, dword [esp + 0x58]
jne 0x45a60d
cmp edi, 0x20
sbb eax, eax
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x45a653
mov eax, edi
mov dword [esp + 0x18], 0
shr eax, 3
mov dword [esp + 0x1c], eax
mov eax, edx
sub eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x58]
jae 0x45a63a
mov eax, edx
mov dword [esp + 0x18], 1
sub eax, dword [esp + 0x58]
jmp 0x45a63e
mov eax, dword [esp + 0x1c]
sub edx, eax
imul eax, eax, 0xfffffff8
add edi, eax
mov eax, dword [edx]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edx
cmp ebx, 0x20
jbe 0x45a665
mov dword [esp + 0x10], 3
jmp 0x45a6e6
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
add eax, 4
cmp edx, eax
jb 0x45a688
mov eax, ebx
mov dword [esp + 0x10], 0
shr eax, 3
sub edx, eax
and ebx, 7
jmp 0x45a6d4
cmp edx, dword [esp + 0x68]
jne 0x45a69c
cmp ebx, 0x20
sbb eax, eax
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x45a6e6
mov eax, ebx
mov dword [esp + 0x10], 0
shr eax, 3
mov dword [esp + 0x1c], eax
mov eax, edx
sub eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x68]
jae 0x45a6c9
mov eax, edx
mov dword [esp + 0x10], 1
sub eax, dword [esp + 0x68]
jmp 0x45a6cd
mov eax, dword [esp + 0x1c]
sub edx, eax
imul eax, eax, 0xfffffff8
add ebx, eax
mov eax, dword [edx]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x64], edx
cmp ecx, 0x20
jbe 0x45a6f2
mov eax, 3
jmp 0x45a75e
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
lea eax, [ebx + 4]
cmp edx, eax
jb 0x45a717
mov eax, ecx
and ecx, 7
shr eax, 3
sub edx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x70], ecx
xor eax, eax
jmp 0x45a754
cmp edx, ebx
jne 0x45a725
cmp ecx, 0x20
sbb eax, eax
add eax, 2
jmp 0x45a75e
mov ebx, ecx
xor eax, eax
shr ebx, 3
mov ecx, edx
sub ecx, ebx
cmp ecx, dword [esp + 0x78]
jae 0x45a741
mov ebx, edx
mov eax, 1
sub ebx, dword [esp + 0x78]
imul ecx, ebx, 0xfffffff8
sub edx, ebx
mov ebx, dword [esp + 0x28]
add ebx, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x70], ebx
mov ecx, dword [edx]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], edx
or eax, dword [esp + 0x10]
or eax, dword [esp + 0x18]
or eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x88]
cmp dword [esp + 0x34], ebx
jbe 0x45a331
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x8c]
cmp ecx, eax
ja 0x45a889
cmp dword [esp + 0x38], edx
ja 0x45a889
mov esi, dword [esp + 0x34]
cmp esi, ebx
ja 0x45a889
push dword [esp + 0x80]
mov edi, dword [ebp + 0x10]
lea edx, [esp + 0x40]
push edi
push eax
call fcn.00459cd0
push dword [esp + 0x8c]
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x5c]
push edi
push dword [esp + 0x98]
call fcn.00459cd0
push dword [esp + 0x98]
lea edx, [esp + 0x78]
mov ecx, esi
push edi
push ebx
call fcn.00459cd0
push dword [esp + 0xa4]
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x94]
push edi
push dword [esp + 0xbc]
call fcn.00459cd0
mov eax, dword [esp + 0x74]
add esp, 0x30
cmp eax, dword [esp + 0x48]
jne 0x45a82a
cmp dword [esp + 0x40], 0x20
jne 0x45a82a
mov ecx, 1
jmp 0x45a82c
xor ecx, ecx
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x58]
jne 0x45a844
cmp dword [esp + 0x50], 0x20
jne 0x45a844
mov edx, 1
jmp 0x45a846
xor edx, edx
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x68]
jne 0x45a85e
cmp dword [esp + 0x60], 0x20
jne 0x45a85e
mov esi, 1
jmp 0x45a860
xor esi, esi
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x78]
jne 0x45a878
cmp dword [esp + 0x70], 0x20
jne 0x45a878
mov eax, 1
jmp 0x45a87a
xor eax, eax
and eax, esi
and eax, edx
test ecx, eax
mov eax, dword [esp + 0x94]
jne 0x45a88e
mov eax, 0xffffffec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret