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

Disassembly:
mov eax, 0x12d8
call fcn.0058fc10
mov eax, dword [0x69cffc]
xor eax, esp
mov dword [esp + 0x12d4], eax
push esi
push edi
mov edi, dword [esp + 0x12e4]
mov esi, dword [edi + 0x5870]
mov eax, dword [edi + 0x5884]
mov dword [esp + 0x78], eax
test esi, esi
je 0x5b69aa
cmp esi, 3
jne 0x5b69b9
mov dword [esp + 0x88], 1
test eax, eax
je 0x5b69c4
mov dword [esp + 0x88], 0
mov eax, dword [edi]
mov ecx, dword [eax + 0x3c]
mov eax, ecx
cdq
sub eax, edx
mov dword [esp + 0x8c], ecx
sar eax, 1
add eax, 0x14
cdq
idiv ecx
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x170]
add eax, 0x14
mov dword [esp + 0x48], eax
cmp esi, 3
jge 0x5b6a02
cmp dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
je 0x5b6a0a
mov dword [esp + 0x74], 1
mov eax, dword [edi + 0x2c]
imul eax, dword [edi + 0x28]
mov dword [esp + 0xa8], eax
lea eax, [esp + 8]
push eax
push edi
call fcn.005b5e70
push 0x1080
lea eax, [edi + 0x117c]
push 0
push eax
call fcn.005e8c40
add esp, 0x14
cmp dword [esp + 0x88], 0
je 0x5b6a92
cmp esi, 3
mov esi, dword [esp + 0xa8]
jne 0x5b6a70
cmp esi, 0xc8
jle 0x5b6a62
sar esi, 1
mov dword [esp + 0xa8], esi
jmp 0x5b6a99
mov esi, 0x64
mov dword [esp + 0xa8], esi
jmp 0x5b6a99
cmp esi, 0xc8
jle 0x5b6a84
sar esi, 2
mov dword [esp + 0xa8], esi
jmp 0x5b6a99
mov esi, 0x32
mov dword [esp + 0xa8], esi
jmp 0x5b6a99
mov esi, dword [esp + 0xa8]
mov ecx, dword [esp + 0x8c]
test ecx, ecx
jle 0x5b6f64
movss xmm0, dword [esp + 0x14]
lea eax, [esi + esi*2]
movsd xmm2, qword [esp + 0x28]
movss xmm1, dword [esp + 0xc]
movsd xmm3, qword [0x674230]
shl eax, 7
cdq
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esp + 0x10]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x50], edx
movsd qword [esp + 0x40], xmm2
movss dword [esp + 0xa0], xmm0
movss dword [esp + 0x9c], xmm1
mov dword [esp + 0x64], eax
nop dword [eax]
cvtps2pd xmm0, xmm1
mov dword [esp + 0x4c], ecx
dec ecx
mov dword [esp + 0x8c], ecx
movsd xmm1, qword [0x660170]
andps xmm0, xmm3
comisd xmm1, xmm0
jae 0x5b6b35
test ecx, ecx
je 0x5b6b35
cmp dword [edi + 0x5878], 0
mov dword [esp + 0x68], 0
jne 0x5b6b3d
mov dword [esp + 0x68], 1
lea eax, [esp + 0xac]
mov dword [esp + 0x70], esi
xorps xmm0, xmm0
push eax
push edi
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x60], xmm0
call fcn.005cf300
movss xmm0, dword [esp + 0xa8]
add esp, 4
movss dword [esp], xmm0
push edi
call fcn.005b66d0
mov eax, dword [esp + 0x8c]
add esp, 8
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x80], eax
nop
lea eax, [esp + 0xac]
push 0
push eax
call fcn.005cf0d0
push dword [esp + 0x7c]
lea eax, [esp + 0xf78]
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.005d1d70
add esp, 0x14
test eax, eax
je 0x5b6c05
inc dword [edi + 0x5804]
lea eax, [esp + 0xf6c]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.005b6350
mov esi, dword [esp + 0xf84]
add esp, 8
mov eax, dword [esp + 0xf80]
mov ecx, esi
add ecx, dword [esp + 0xf84]
adc eax, dword [esp + 0xf88]
add dword [esp + 0x98], ecx
adc dword [esp + 0x94], eax
add dword [esp + 0xa4], esi
mov esi, dword [esp + 0x88]
adc esi, dword [esp + 0xf80]
mov eax, dword [esp + 0x80]
add eax, dword [esp + 0xf6c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x90]
adc eax, dword [esp + 0xf70]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x88], esi
test eax, eax
je 0x5b6cb0
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.005cf550
add esp, 8
test eax, eax
je 0x5b6f4b
lea eax, [esp + 0xac]
push eax
call fcn.005cf640
lea eax, [esp + 0xb0]
push eax
call fcn.005cf410
add esp, 8
test eax, eax
je 0x5b6ce9
mov esi, dword [esp + 0x70]
dec esi
mov dword [esp + 0x70], esi
test esi, esi
jg 0x5b6bd0
mov esi, dword [esp + 0x88]
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0xa4]
cdq
add ecx, eax
mov dword [esp + 0xa4], ecx
adc esi, edx
cmp dword [esp + 0x38], 0
je 0x5b6d63
push edi
call fcn.005b5bd0
cdq
add dword [esp + 0x9c], eax
lea eax, [edi + 0xd58]
push eax
adc dword [esp + 0x9c], edx
call fcn.005b5ca0
cdq
add esp, 8
add eax, dword [esp + 0xa4]
adc edx, esi
add eax, dword [esp + 0x98]
adc edx, dword [esp + 0x94]
add eax, 0x400
adc edx, 0
shrd eax, edx, 0xb
shr edx, 0xb
add eax, 0x1e
mov ecx, eax
adc edx, 0
call fcn.00614c70
movaps xmm2, xmm0
jmp 0x5b6dd6
cmp dword [esp + 0x90], 0
ja 0x5b6d77
cmp dword [esp + 0x80], 0
jbe 0x5b6d87
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x6c]
test edx, edx
jne 0x5b6d91
test eax, eax
jne 0x5b6d91
movsd xmm2, qword [0x65e118]
jmp 0x5b6ddd
mov ecx, eax
call fcn.00614c70
mulsd xmm0, qword [0x65e128]
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x80]
movsd qword [esp + 0x58], xmm0
call fcn.00614c70
movsd xmm1, qword [esp + 0x58]
divsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.00602ec0
movaps xmm2, xmm0
mulsd xmm2, qword [0x637d48]
mov ecx, dword [esp + 0xa4]
mov eax, ecx
or eax, esi
je 0x5b6f4b
mov eax, dword [edi + 0x5878]
test eax, eax
jle 0x5b6e1f
test esi, esi
jne 0x5b6dfd
cmp ecx, 0x3fc00000
jbe 0x5b6e1f
mov ecx, dword [esp + 0x4c]
movss xmm1, dword [esp + 0x9c]
movsd xmm3, qword [0x674230]
sar eax, 1
mov dword [edi + 0x5878], eax
jmp 0x5b6f3b
cmp dword [esp + 0x68], 0
jne 0x5b6f64
cmp dword [esp + 0x78], 0
je 0x5b6f23
cmp dword [esp + 0x64], 0
je 0x5b6e5e
comisd xmm2, xmmword [esp + 0x30]
movss xmm0, dword [esp + 0x9c]
jbe 0x5b6e54
xorps xmm0, xmmword [0x660190]
mov dword [esp + 0x64], 0
jmp 0x5b6e9a
movsd xmm0, qword [esp + 0x40]
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jnp 0x5b6ea9
movsd xmm1, qword [esp + 0x30]
subsd xmm0, xmm2
subsd xmm1, xmm2
divsd xmm1, xmm0
movss xmm0, dword [esp + 0x60]
subss xmm0, dword [esp + 0xa0]
cvtps2pd xmm0, xmm0
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss xmm1, dword [0x660184]
comiss xmm1, xmm0
jbe 0x5b6eac
jmp 0x5b6eb8
xorps xmm0, xmm0
movss xmm1, dword [0x660180]
minss xmm1, xmm0
movss xmm3, dword [esp + 0xa0]
movaps xmm0, xmm3
movss dword [esp + 0x9c], xmm1
addss xmm3, xmm1
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esp + 0x18]
movsd qword [esp + 0x40], xmm2
comiss xmm0, xmm3
movss dword [esp + 0xa0], xmm3
ja 0x5b6efc
movss xmm0, dword [esp + 0x1c]
comiss xmm3, xmm0
jbe 0x5b6f05
movss dword [esp + 0xa0], xmm0
movsd xmm3, qword [0x674230]
movsd xmm2, qword [0x660170]
cvtps2pd xmm0, xmm1
andps xmm0, xmm3
comisd xmm2, xmm0
jae 0x5b6f6b
jmp 0x5b6f34
movss xmm1, dword [esp + 0x9c]
movsd xmm3, qword [0x674230]
mov ecx, dword [esp + 0x8c]
test ecx, ecx
jle 0x5b6f64
mov esi, dword [esp + 0xa8]
jmp 0x5b6b00
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x12d4]
xor ecx, esp
call fcn.0058f0d5
add esp, 0x12d8
ret
cmp dword [esp + 0x78], 0
je 0x5b6f7a
cmp dword [esp + 0x38], 0
je 0x5b6f7a
lea esi, [edi + 0xd58]
jmp 0x5b6f8f
push edi
call fcn.005b5bd0
lea esi, [edi + 0xd58]
push esi
call fcn.005b5ca0
add esp, 8
push esi
call fcn.005d29e0
lea eax, [edi + 0x170]
push eax
push dword [esp + 0x50]
push dword [edi + 4]
call fcn.005aaee0
mov ecx, dword [esp + 0x12ec]
add esp, 0x10
pop edi
pop esi
xor ecx, esp
call fcn.0058f0d5
add esp, 0x12d8
ret