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

Disassembly:
sub esp, 0x80
mov eax, dword [esp + 0x98]
push ebx
push ebp
push esi
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
inc ebx
and ebx, 0xfffffffe
mov dword [esp + 0x60], 0xffffffff
mov eax, ebx
mov dword [esp + 0x20], ebx
sar eax, 1
inc ebp
mov dword [esp + 0x10], eax
and ebp, 0xfffffffe
lea eax, [ebx + ebx*2]
mov dword [esp + 0x2c], ebp
add eax, eax
mov dword [esp + 0x64], 0xffffffff
push edi
mov dword [esp + 0x4c], eax
cdq
push 2
push edx
push eax
call fcn.005a6680
mov dword [esp + 0x1c], eax
mov eax, ebp
imul eax, ebx
push 2
cdq
mov esi, edx
mov edi, eax
push esi
push edi
call fcn.005a6680
push 2
push esi
push edi
mov dword [esp + 0x40], eax
call fcn.005a6680
mov dword [esp + 0x4c], eax
lea ebp, [ebx + ebx]
mov eax, ebp
mov dword [esp + 0x98], ebp
cdq
push 2
push edx
push eax
call fcn.005a6680
mov ecx, dword [esp + 0x60]
mov ebx, eax
sar ecx, 1
imul ecx, dword [esp + 0x44]
push 2
mov dword [esp + 0x6c], ebx
lea eax, [ecx + ecx*2]
cdq
mov esi, edx
mov edi, eax
push esi
push edi
call fcn.005a6680
push 2
push esi
push edi
mov dword [esp + 0x68], eax
call fcn.005a6680
mov edi, eax
add esp, 0x48
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], edi
push 2
lea eax, [eax + eax*2]
cdq
push edx
push eax
call fcn.005a6680
mov esi, eax
add esp, 0xc
mov dword [esp + 0x50], esi
movd xmm1, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x24]
cvtdq2pd xmm1, xmm1
mov dword [esp + 0x18], eax
movd xmm0, edi
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x632038]
mulsd xmm0, xmm1
call fcn.00614bc0
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], edx
je 0x5a9d2f
cmp dword [esp + 0x20], 0
je 0x5a9d2f
cmp dword [esp + 0x28], 0
je 0x5a9d2f
cmp dword [esp + 0x34], 0
je 0x5a9d2f
test ebx, ebx
mov ebx, dword [esp + 0x10]
je 0x5a9d33
test esi, esi
je 0x5a9d33
test ebx, ebx
je 0x5a9d33
call fcn.005aef00
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x48], 0
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], eax
test eax, eax
jle 0x5a9a20
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x94]
mov esi, dword [esp + 0x4c]
add esi, ebx
lea eax, [eax + eax*2]
mov dword [esp + 0x40], esi
add eax, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xa4]
add eax, eax
mov dword [esp + 0x84], eax
mov eax, edi
neg eax
shl eax, 2
mov dword [esp + 0x7c], eax
mov eax, ebx
sub eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x98]
sub edx, eax
sub dword [esp + 0x9c], eax
mov dword [esp + 0x94], edx
mov ebp, dword [esp + 0xa8]
add edx, eax
mov ecx, dword [esp + 0x9c]
push ebx
add ecx, eax
mov dword [esp + 0x40], edx
push dword [ebp + 8]
mov dword [esp + 0x60], ecx
push dword [esp + 0xa8]
push ecx
push eax
push edx
call fcn.005a74c0
mov eax, dword [esp + 0x74]
add esp, 0x18
dec eax
cmp dword [esp + 0x48], eax
je 0x5a9811
mov ecx, dword [esp + 0xa4]
mov eax, ebp
push esi
push dword [eax + 8]
mov eax, dword [esp + 0x60]
push dword [esp + 0xa8]
add eax, ecx
push eax
mov eax, dword [esp + 0xa8]
add eax, ecx
push eax
mov eax, dword [esp + 0x50]
add eax, ecx
push eax
call fcn.005a74c0
add esp, 0x18
jmp 0x5a981f
push dword [esp + 0x4c]
push ebx
push esi
call fcn.005e86c0
add esp, 0xc
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x54]
push edi
push eax
push ebx
call fcn.005a9da0
mov eax, dword [esp + 0x24]
lea ebp, [edi + edi]
add eax, ebp
mov dword [esp + 0x48], eax
add eax, dword [esp + 0x60]
push edi
push eax
push esi
call fcn.005a9da0
add esp, 0x18
test edi, edi
jle 0x5a99a0
lea eax, [ebx + ebp]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x18]
lea edx, [ebx + ebp*2]
mov dword [esp + 0x70], eax
mov ebp, eax
mov dword [esp + 0x58], edx
nop dword [eax + eax]
mov eax, dword [esp + 0x44]
lea ebp, [ebp + 2]
lea edi, [edi + 2]
movzx eax, word [eax + edi - 2]
imul ecx, dword [eax*4 + 0x6a7c70], 0x366d
movzx eax, word [ebp - 2]
imul eax, dword [eax*4 + 0x6a7c70], 0xb717
add ecx, eax
movzx eax, word [edx]
add ecx, 0x8000
imul esi, dword [eax*4 + 0x6a7c70], 0x127c
add esi, ecx
sar esi, 0x10
shl esi, 5
mov ecx, esi
shr ecx, 0xe
lea eax, [ecx*4]
shl ecx, 0xe
mov edx, dword [eax + 0x6a7be8]
sub esi, ecx
mov eax, dword [eax + 0x6a7bec]
sub eax, edx
imul esi, eax
shr esi, 0xe
add esi, edx
mov edx, dword [esp + 0x58]
add edx, 2
mov word [edi - 2], si
sub dword [esp + 0x5c], 1
mov dword [esp + 0x58], edx
jne 0x5a9870
mov edx, dword [esp + 0x40]
mov esi, edx
sub esi, dword [esp + 0x18]
xor ebx, ebx
mov ebp, dword [esp + 0x74]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x70], esi
lea eax, [ebx + ebp]
movzx eax, word [edx + eax*2]
imul ecx, dword [eax*4 + 0x6a7c70], 0x127c
movzx eax, word [edx + ebx*2]
inc ebx
imul eax, dword [eax*4 + 0x6a7c70], 0x366d
add ecx, eax
mov eax, dword [esp + 0x3c]
add ecx, 0x8000
movzx eax, word [esi + eax]
imul esi, dword [eax*4 + 0x6a7c70], 0xb717
add esi, ecx
sar esi, 0x10
shl esi, 5
mov ecx, esi
shr ecx, 0xe
lea eax, [ecx*4]
shl ecx, 0xe
mov edx, dword [eax + 0x6a7be8]
sub esi, ecx
mov eax, dword [eax + 0x6a7bec]
sub eax, edx
imul esi, eax
mov eax, dword [esp + 0x3c]
shr esi, 0xe
add esi, edx
mov edx, dword [esp + 0x40]
mov word [eax], si
add eax, 2
mov esi, dword [esp + 0x70]
mov dword [esp + 0x3c], eax
cmp ebx, edi
jl 0x5a9910
mov ebx, dword [esp + 0x10]
mov esi, edx
push dword [esp + 0x14]
push dword [esp + 0x30]
push esi
push ebx
call fcn.005a9e20
push dword [esp + 0x70]
mov eax, dword [esp + 0x40]
push eax
add eax, dword [esp + 0x90]
push eax
call fcn.005e86c0
mov ecx, dword [esp + 0xc4]
lea eax, [edi*4]
add dword [esp + 0x34], eax
add esp, 0x1c
mov eax, dword [esp + 0x7c]
add dword [esp + 0x44], eax
mov eax, dword [esp + 0x60]
add dword [esp + 0x2c], eax
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x98]
add edx, 2
add eax, dword [esp + 0x84]
mov ecx, dword [ecx + 0xc]
cmp edx, ecx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x98], eax
mov dword [esp + 0x5c], ecx
jl 0x5a97a0
mov dword [esp + 0x54], 0
nop dword [eax + eax]
mov eax, dword [esp + 0x20]
xor esi, esi
mov edx, dword [esp + 0x1c]
xorps xmm0, xmm0
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
movlpd qword [esp + 0x7c], xmm0
mov dword [esp + 0x40], edx
mov dword [esp + 0x58], esi
test eax, eax
jle 0x5a9ccb
mov ecx, dword [esp + 0x4c]
add eax, 0xfffffffe
mov dword [esp + 0x84], eax
add ecx, ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
lea eax, [eax + eax*2]
add eax, eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x28]
sub eax, edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x3c], eax
nop dword [eax]
mov ebp, dword [esp + 0x14]
push ecx
push ebx
mov ebx, dword [esp + 0x50]
lea eax, [ebp*2]
add eax, ebp
xor ebp, ebp
cmp esi, dword [esp + 0x8c]
mov esi, dword [esp + 0x50]
cmovge eax, ebp
push edi
lea esi, [esi + eax*2]
push esi
push ebx
push dword [esp + 0x74]
push edx
call fcn.005a93b0
mov dword [esp + 0x7c], ebx
lea ebp, [edi + edi]
add esp, 0x1c
mov dword [esp + 0x48], esi
xor ebx, ebx
test edi, edi
jle 0x5a9c35
mov ecx, dword [esp + 0x10]
mov esi, ecx
mov edi, dword [esp + 0x38]
sub esi, edi
mov dword [esp + 0x7c], esi
lea edx, [ecx + ebp]
mov dword [esp + 0x5c], edx
lea eax, [ebx + ebp]
inc ebx
movzx eax, word [ecx + eax*2]
lea edi, [edi + 2]
imul ecx, dword [eax*4 + 0x6a7c70], 0x127c
movzx eax, word [esi + edi - 2]
imul eax, dword [eax*4 + 0x6a7c70], 0x366d
add ecx, eax
movzx eax, word [edx]
add ecx, 0x8000
imul esi, dword [eax*4 + 0x6a7c70], 0xb717
add esi, ecx
sar esi, 0x10
shl esi, 5
mov ecx, esi
shr ecx, 0xe
lea eax, [ecx*4]
shl ecx, 0xe
mov edx, dword [eax + 0x6a7be8]
sub esi, ecx
mov eax, dword [eax + 0x6a7bec]
mov ecx, dword [esp + 0x10]
sub eax, edx
imul esi, eax
shr esi, 0xe
add esi, edx
mov edx, dword [esp + 0x5c]
add edx, 2
mov word [edi - 2], si
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x5c], edx
cmp ebx, dword [esp + 0x24]
jl 0x5a9b12
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov esi, edx
sub esi, eax
xor edi, edi
mov dword [esp + 0x7c], esi
lea ebx, [eax + ebp]
lea eax, [edi + ebp]
movzx eax, word [edx + eax*2]
lea ebx, [ebx + 2]
imul ecx, dword [eax*4 + 0x6a7c70], 0x127c
movzx eax, word [edx + edi*2]
inc edi
imul eax, dword [eax*4 + 0x6a7c70], 0x366d
add ecx, eax
movzx eax, word [esi + ebx - 2]
add ecx, 0x8000
imul esi, dword [eax*4 + 0x6a7c70], 0xb717
add esi, ecx
sar esi, 0x10
shl esi, 5
mov ecx, esi
shr ecx, 0xe
lea eax, [ecx*4]
shl ecx, 0xe
mov edx, dword [eax + 0x6a7be8]
sub esi, ecx
mov eax, dword [eax + 0x6a7bec]
sub eax, edx
imul esi, eax
shr esi, 0xe
add esi, edx
mov edx, dword [esp + 0x2c]
mov word [ebx - 2], si
mov esi, dword [esp + 0x7c]
cmp edi, dword [esp + 0x24]
jl 0x5a9bb3
mov edi, dword [esp + 0x24]
push dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
push dword [esp + 0x54]
push dword [esp + 0x34]
push ebx
call fcn.005a9e20
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x88]
push ebp
push esi
push dword [esp + 0x50]
add eax, esi
push eax
call dword [0x6ad338]
mov ecx, dword [esp + 0x34]
add dword [esp + 0x5c], eax
adc dword [esp + 0x38], edx
lea eax, [ecx + ecx*2]
push eax
mov eax, dword [esp + 0x68]
push eax
push dword [esp + 0x78]
add eax, dword [esp + 0xa0]
push eax
call dword [0x6ad334]
mov ecx, dword [esp + 0x5c]
lea eax, [edi*4]
add esi, eax
add esp, 0x30
mov eax, dword [esp + 0x70]
add dword [esp + 0x44], eax
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
add esi, 2
mov dword [esp + 0x58], esi
cmp esi, dword [esp + 0x30]
jl 0x5a9ab0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
jmp 0x5a9cd6
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x54]
test edx, edx
je 0x5a9d00
cmp ecx, dword [esp + 0x88]
jb 0x5a9d16
ja 0x5a9cf2
cmp eax, dword [esp + 0x8c]
jb 0x5a9d16
cmp ecx, dword [esp + 0x68]
ja 0x5a9d16
jb 0x5a9d00
cmp eax, dword [esp + 0x64]
ja 0x5a9d16
inc edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x54], edx
cmp edx, 4
jl 0x5a9a30
push dword [esp + 0xa8]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.005a7250
add esp, 0xc
jmp 0x5a9d44
mov ebx, dword [esp + 0x10]
push 1
push dword [esp + 0xac]
call fcn.005aaed0
add esp, 8
mov esi, eax
push dword [esp + 0x1c]
call fcn.00447f00
push dword [esp + 0x24]
call fcn.00447f00
push dword [esp + 0x30]
call fcn.00447f00
push dword [esp + 0x40]
call fcn.00447f00
push dword [esp + 0x48]
call fcn.00447f00
push dword [esp + 0x64]
call fcn.00447f00
push ebx
call fcn.00447f00
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret