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

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov eax, dword [eax]
push esi
mov ebx, dword [ebx]
mov dword [esp + 0x24], eax
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
cmp ebx, 1
jb 0x59a36e
mov ecx, dword [edi + 0x2c]
dec ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x14], ecx
mov cl, byte [eax]
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x20]
mov byte [esp + 0x13], cl
mov dword [esp + 0x2c], ebx
cmp eax, 5
jl 0x599ac4
movzx ebp, cl
and ebp, 4
jmp 0x599ac6
xor ebp, ebp
xor edx, edx
movzx esi, cl
cmp eax, 5
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x60]
mov ecx, esi
setl dl
shr ecx, 2
add edx, 0xe
sar eax, 3
and ecx, edx
and eax, edx
cmp ecx, eax
jne 0x59a36e
test ebp, ebp
mov ebp, dword [esp + 0x68]
je 0x599b00
test ebp, ebp
je 0x59a36e
mov al, byte [esp + 0x13]
and al, 3
shr esi, 6
mov byte [esp + 0x13], al
cmp al, 2
jne 0x599c25
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
cmp edx, edi
jge 0x59a34e
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x64]
imul esi, edx
shl eax, 2
mov dword [esp + 0x58], eax
add esi, dword [esp + 0x60]
mov eax, dword [esp + 0x54]
mov ecx, esi
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x68], esi
add ecx, ebp
mov ebp, dword [esp + 0x18]
sub edi, edx
mov dword [esp + 0x5c], edi
mov edx, edi
mov edi, dword [esp + 0x60]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x54], eax
cmp edi, ebx
jge 0x599c03
mov ecx, dword [esp + 0x14]
sub ebx, edi
cmp dword [esp + 0x1c], 0
mov edi, eax
lea ebp, [ecx*4]
je 0x599bc0
nop
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x599bb2
mov eax, dword [edi - 4]
mov dword [edi], eax
inc esi
add edi, ebp
sub ebx, 1
jne 0x599b90
jmp 0x599beb
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x599be3
mov dword [edi], 0
inc esi
add edi, ebp
sub ebx, 1
jne 0x599bc0
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x68]
add eax, ecx
add esi, ebp
mov dword [esp + 0x54], eax
sub edx, 1
mov dword [esp + 0x68], esi
mov dword [esp + 0x5c], edx
jne 0x599b70
jmp 0x59a34e
test al, al
jne 0x599d54
cmp dword [esp + 0x1c], 0
jne 0x59a36e
mov edi, dword [esp + 0x58]
xor edx, edx
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x34], edi
cmp edi, dword [esp + 0x5c]
jge 0x599d44
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
imul eax, edi
add ebx, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
mov ecx, ebx
imul eax, dword [esp + 0x18]
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ebx
shl eax, 2
add ecx, dword [esp + 0x68]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x60]
mov esi, ebx
cmp edx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
jge 0x599d1d
mov edi, ebx
mov ebx, ecx
sub edi, eax
nop dword [eax]
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x599cf4
mov ecx, dword [esp + 0x2c]
cmp ecx, 4
jb 0x59a36e
mov eax, dword [ebp]
sub ecx, 4
mov edx, dword [esp + 0x6c]
add ebp, 4
inc edx
mov dword [ebx], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x6c], edx
jmp 0x599cf8
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x14]
inc edi
inc esi
lea eax, [ecx*4]
add ebx, eax
cmp edi, dword [esp + 0x64]
jl 0x599cb0
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
add eax, dword [esp + 0x18]
inc edi
add ebx, dword [esp + 0x18]
add ecx, dword [esp + 0x24]
mov dword [esp + 0x34], edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x54], ecx
cmp edi, dword [esp + 0x5c]
jl 0x599c93
mov eax, dword [esp + 0x28]
lea eax, [eax + edx*4]
mov dword [esp + 0x28], eax
jmp 0x59a34e
cmp dword [esp + 0x1c], 0
je 0x599d66
cmp dword [edi + 0x48], 6
mov eax, 4
jl 0x599d69
mov eax, dword [edi + 0x48]
push esi
push eax
call fcn.005bb2f0
mov esi, eax
add esp, 8
cmp esi, 8
je 0x59a36e
push esi
call fcn.005bb2a0
add esp, 4
mov dword [esp + 0x34], eax
cmp ebx, eax
jb 0x59a36e
lea eax, [esp + 0x28]
push esi
push eax
call fcn.005bbe00
sub ebx, dword [esp + 0x3c]
add esp, 8
mov edx, dword [edi + 0x20]
mov dword [esp + 0x2c], ebx
fstp qword [esp + 0x40]
cmp edx, 4
jl 0x599dc9
cmp dword [esp + 0x14], 1
jle 0x599dc9
mov eax, dword [edi + 0xb4]
movsd xmm0, qword [eax + ebp*8]
jmp 0x599dce
movsd xmm0, qword [edi + 0x60]
cmp byte [esp + 0x13], 3
movsd qword [esp + 0x38], xmm0
jne 0x599f18
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
cmp edx, edi
jge 0x59a34e
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
movsd xmm2, qword [esp + 0x40]
imul esi, edx
shl eax, 2
mov dword [esp + 0x58], eax
add esi, dword [esp + 0x60]
mov eax, dword [esp + 0x54]
mov ecx, esi
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x68], esi
add ecx, ebp
sub edi, edx
mov dword [esp + 0x5c], edi
mov edx, edi
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], ecx
cmp dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x64]
jne 0x599e87
cvttsd2si ebp, xmm2
cmp dword [esp + 0x60], ebx
jge 0x599eee
sub ebx, dword [esp + 0x60]
mov edi, ecx
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x599e72
mov dword [edi], ebp
mov ecx, dword [esp + 0x14]
inc esi
lea eax, [ecx*4]
add edi, eax
sub ebx, 1
jne 0x599e53
jmp 0x599ee2
cmp dword [esp + 0x60], ebx
jge 0x599eee
mov eax, dword [esp + 0x14]
mov edi, ecx
sub ebx, dword [esp + 0x60]
lea ebp, [eax*4]
nop
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x599ed4
movd xmm1, dword [edi - 4]
cvtdq2pd xmm1, xmm1
addsd xmm1, xmm2
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [edi], eax
movsd xmm0, qword [esp + 0x38]
inc esi
add edi, ebp
sub ebx, 1
jne 0x599ea0
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x68]
add ecx, eax
add esi, dword [esp + 0x18]
sub edx, 1
movsd xmm0, qword [esp + 0x38]
mov dword [esp + 0x68], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], edx
jne 0x599e34
jmp 0x59a34e
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x6c]
sub ecx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
mov ebx, eax
mov dword [esp + 0x30], eax
imul ebx, ecx
lea eax, [esp + 0x2c]
push edx
mov dword [esp + 0x28], ecx
lea ecx, [edi + 0x78]
push ebx
push esi
push eax
lea eax, [esp + 0x38]
push eax
call fcn.005bf220
test al, al
je 0x59a36e
movsd xmm3, qword [edi + 0x50]
mov eax, dword [esi + 4]
addsd xmm3, xmm3
mov edi, dword [esi]
sub eax, edi
sar eax, 2
cmp eax, ebx
jne 0x59a08c
mov ecx, dword [esp + 0x58]
cmp ecx, dword [esp + 0x5c]
jge 0x59a34e
mov esi, dword [esp + 0x14]
mov eax, esi
mov edx, dword [esp + 0x18]
movsd xmm2, qword [esp + 0x40]
movsd xmm4, qword [esp + 0x38]
imul eax, edx
imul edx, ecx
mov ecx, dword [esp + 0x60]
shl eax, 2
add edx, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x54]
imul edx, esi
add edx, ebp
mov ebp, dword [esp + 0x5c]
lea ebx, [eax + edx*4]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x59a017
cmp ecx, dword [esp + 0x64]
jge 0x59a078
mov edx, dword [esp + 0x30]
mov ecx, ebx
shl esi, 2
nop dword [eax]
mov eax, dword [edi]
movaps xmm0, xmm4
add edi, 4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x8b6930]
mulsd xmm1, xmm3
addsd xmm1, xmm2
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ecx], eax
add ecx, esi
sub edx, 1
jne 0x599fe0
jmp 0x59a068
cmp ecx, dword [esp + 0x64]
jge 0x59a078
mov edx, dword [esp + 0x30]
mov ecx, ebx
shl esi, 2
mov eax, dword [edi]
add edi, 4
movd xmm0, dword [ecx - 4]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x8b6930]
mulsd xmm1, xmm3
addsd xmm1, xmm2
addsd xmm1, xmm0
movaps xmm0, xmm4
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ecx], eax
add ecx, esi
sub edx, 1
jne 0x59a026
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x24]
add ebx, ebp
sub eax, 1
mov dword [esp + 0x24], eax
jne 0x599fc6
jmp 0x59a34e
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x20], 2
jle 0x59a221
mov ecx, dword [esp + 0x58]
cmp ecx, dword [esp + 0x5c]
jge 0x59a34e
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
movsd xmm2, qword [esp + 0x40]
movsd xmm4, qword [esp + 0x38]
imul esi, ecx
shl eax, 2
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
add esi, ebx
mov ecx, esi
mov dword [esp + 0x68], esi
imul ecx, dword [esp + 0x14]
add ecx, ebp
mov ebp, dword [esp + 0x18]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
cmp dword [esp + 0x1c], 0
jne 0x59a170
cmp ebx, dword [esp + 0x64]
jge 0x59a1ff
mov ebp, dword [esp + 0x30]
mov ebx, ecx
nop dword [eax]
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x59a15b
mov eax, dword [edi]
movaps xmm0, xmm4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
add edi, 4
addsd xmm1, qword [eax*8 + 0x8b6930]
mulsd xmm1, xmm3
addsd xmm1, xmm2
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebx], eax
mov ecx, dword [esp + 0x14]
inc esi
lea eax, [ecx*4]
add ebx, eax
sub ebp, 1
jne 0x59a110
jmp 0x59a1eb
cmp ebx, dword [esp + 0x64]
jge 0x59a1ff
mov ebp, dword [esp + 0x30]
mov ebx, ecx
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x59a1d8
mov eax, dword [edi]
movd xmm0, dword [ebx - 4]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
add edi, 4
addsd xmm1, qword [eax*8 + 0x8b6930]
mulsd xmm1, xmm3
addsd xmm1, xmm2
addsd xmm1, xmm0
movaps xmm0, xmm4
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebx], eax
mov ecx, dword [esp + 0x14]
inc esi
lea eax, [ecx*4]
add ebx, eax
sub ebp, 1
jne 0x59a180
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x68]
add ecx, edx
add esi, ebp
mov dword [esp + 0x58], ecx
sub eax, 1
mov dword [esp + 0x68], esi
mov dword [esp + 0x24], eax
jne 0x59a0f5
jmp 0x59a34e
mov edx, dword [esp + 0x58]
xor ebp, ebp
cmp edx, dword [esp + 0x5c]
jge 0x59a34e
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
movsd xmm2, qword [esp + 0x40]
movsd xmm4, qword [esp + 0x38]
imul edi, edx
shl eax, 2
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x54]
add ebx, edi
mov dword [esp + 0x58], edi
mov ecx, ebx
mov dword [esp + 0x24], ebx
imul ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x68]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], ecx
nop dword [eax]
mov edx, dword [esp + 0x60]
mov esi, ebx
cmp edx, dword [esp + 0x64]
mov edx, dword [esp + 0x34]
jge 0x59a329
mov edi, ebx
mov ebx, ecx
sub edi, dword [esp + 0x58]
nop dword [eax]
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x59a300
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
cmp ebp, eax
je 0x59a36e
mov eax, dword [ecx + ebp*4]
movaps xmm0, xmm4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
inc ebp
addsd xmm1, qword [eax*8 + 0x8b6930]
mulsd xmm1, xmm3
addsd xmm1, xmm2
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebx], eax
mov ecx, dword [esp + 0x14]
inc edi
inc esi
lea eax, [ecx*4]
add ebx, eax
cmp edi, dword [esp + 0x64]
jl 0x59a2a0
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x30]
add edi, dword [esp + 0x18]
inc edx
add ebx, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x54], ecx
cmp edx, dword [esp + 0x5c]
jl 0x59a280
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
pop ebp
pop ebx
mov dword [ecx], eax
mov al, 1
add esp, 0x38
ret 0x24
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x38
ret 0x24