Function at 0x5b7310
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
mov esi, dword [esp + 0x12e0]
push edi
mov dword [esp + 0xa4], esi
mov dword [esp + 0x88], 0x28
mov ecx, dword [esi + 0x2c]
lea edi, [esi + 0xd58]
imul ecx, dword [esi + 0x28]
mov dword [esp + 0x7c], edi
mov eax, ecx
sar eax, 3
mov dword [esp + 0xa8], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0xa0], eax
mov eax, dword [esi + 0x5884]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x5874]
mov dword [esp + 0x5c], eax
lea eax, [ecx + ecx*2]
shl eax, 7
cdq
mov dword [esp + 0x68], eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x74], edx
call fcn.005b5e70
push esi
call fcn.005b6010
add esp, 0xc
test eax, eax
jne 0x5b73be
pop edi
pop esi
mov ecx, dword [esp + 0x12d4]
xor ecx, esp
call fcn.0058f0d5
add esp, 0x12d8
ret
mov edi, dword [esp + 0xa8]
mov eax, 0x60
mov edx, dword [esp + 0x6c]
cmp edi, eax
mov ecx, dword [esp + 0x68]
cmovl edi, eax
mov dword [esp + 0xa8], edi
call fcn.00614c70
mulsd xmm0, qword [0x65e128]
mov eax, dword [esp + 8]
movsd xmm2, qword [esp + 0x28]
movss xmm3, dword [esp + 0x14]
movss xmm1, dword [esp + 0xc]
movsd qword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x10]
movsd qword [esp + 0x48], xmm2
movss dword [esp + 0x60], xmm3
movss dword [esp + 0x94], xmm0
movss dword [esp + 0x98], xmm1
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0xa0]
mov eax, ecx
mov dword [esp + 0x54], ecx
dec ecx
mov dword [esp + 0xa0], ecx
test eax, eax
jle 0x5b799e
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x660170]
andps xmm0, xmmword [0x674230]
comisd xmm1, xmm0
jae 0x5b747c
test ecx, ecx
je 0x5b747c
cmp dword [esi + 0x5878], 0
mov dword [esp + 0x8c], 0
jne 0x5b7487
mov dword [esp + 0x8c], 1
mov eax, dword [esp + 0x88]
add ecx, 2
cdq
xorps xmm0, xmm0
idiv ecx
movlpd qword [esp + 0x74], xmm0
sub dword [esp + 0x88], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0xac]
push eax
push esi
movlpd qword [esp + 0x88], xmm0
call fcn.005cf300
movss xmm0, dword [esp + 0x9c]
add esp, 4
movss dword [esp], xmm0
push esi
call fcn.005b66d0
add esp, 8
cmp dword [esp + 0x8c], 0
je 0x5b7506
push 0x1080
lea eax, [esi + 0x117c]
push 0
push eax
call fcn.005e8c40
lea eax, [esp + 0xb8]
push eax
call fcn.005d2730
add esp, 0x10
add esi, 0x158
push esi
mov dword [esp + 0x74], esi
call fcn.005b4be0
mov eax, dword [esp + 0x78]
add esp, 4
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x84], eax
nop dword [eax + eax]
lea eax, [esp + 0xac]
push 0
push eax
call fcn.005cf0d0
add esp, 8
sub edi, 1
jns 0x5b7581
mov edi, dword [esp + 0x7c]
push edi
call fcn.005b5ca0
push edi
call fcn.005d29e0
mov edi, dword [esp + 0xb0]
add esp, 8
push dword [esp + 0x5c]
lea eax, [esp + 0xf70]
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.005d1d70
push esi
lea eax, [esp + 0xf7c]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.005b64f0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x5b7960
mov eax, dword [esp + 0x90]
add eax, dword [esp + 0xf7c]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
adc eax, dword [esp + 0xf80]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x84]
add eax, dword [esp + 0xf6c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x78]
adc eax, dword [esp + 0xf70]
cmp dword [esp + 0x8c], 0
mov dword [esp + 0x78], eax
je 0x5b7652
lea eax, [esp + 0xac]
push eax
call fcn.005b6fe0
lea eax, [esp + 0xb0]
push eax
call fcn.005d27e0
lea eax, [esp + 0xb4]
push eax
call fcn.005cf000
push dword [esp + 0x64]
lea eax, [esp + 0xbc]
push eax
call fcn.005cf550
add esp, 0x14
mov esi, eax
lea eax, [esp + 0xac]
push eax
call fcn.005cf640
add esp, 4
test esi, esi
je 0x5b7974
lea eax, [esp + 0xac]
push eax
call fcn.005cf410
mov esi, dword [esp + 0x74]
add esp, 4
test eax, eax
jne 0x5b7550
mov eax, dword [esp + 0xa4]
mov esi, dword [esp + 0x90]
mov ecx, dword [esp + 0x9c]
mov eax, dword [eax + 0x20]
cdq
add esi, eax
mov dword [esp + 0x90], esi
adc ecx, edx
cmp dword [esp + 0x38], 0
mov dword [esp + 0x9c], ecx
je 0x5b7714
push dword [esp + 0x7c]
call fcn.005b5ca0
mov ecx, dword [esp + 0x80]
add ecx, 4
cdq
push ecx
push dword [esp + 0x78]
mov esi, eax
mov edi, edx
call fcn.005b3e40
xor edx, edx
add esp, 0xc
add eax, esi
mov esi, dword [esp + 0x90]
adc edx, edi
add eax, esi
adc edx, dword [esp + 0x9c]
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 0x5b7763
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x84]
test edx, edx
jne 0x5b7727
test eax, eax
je 0x5b7735
cmp dword [esp + 0x6c], 0
ja 0x5b773f
cmp dword [esp + 0x68], 0
ja 0x5b773f
movsd xmm2, qword [0x65e118]
jmp 0x5b776a
mov ecx, eax
call fcn.00614c70
movsd xmm1, qword [esp + 0x40]
divsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.00602ec0
movaps xmm2, xmm0
mulsd xmm2, qword [0x637d48]
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 0x5878]
test eax, eax
jle 0x5b784a
test ecx, ecx
jne 0x5b778f
cmp esi, 0x3fc00000
jbe 0x5b784a
mov esi, dword [esp + 0xa4]
mov ecx, dword [esp + 0x54]
movss xmm1, dword [esp + 0x98]
mov edi, dword [esp + 0xa8]
sar eax, 1
cmp dword [esp + 0x8c], 0
mov dword [esp + 0xa0], ecx
mov dword [esi + 0x5878], eax
je 0x5b7436
mov ecx, dword [esp + 0xc4]
mov eax, dword [ecx + 4]
cmp dword [eax + 0x58], 0
je 0x5b77ec
xorps xmm0, xmm0
movq qword [ecx + 0x5864], xmm0
mov dword [ecx + 0x586c], 0
movss xmm1, dword [esp + 0x98]
mov dword [ecx + 0x5808], 0
mov dword [ecx + 0x580c], 0
mov dword [ecx + 0x5810], 0
mov dword [ecx + 0x5814], 0
mov dword [ecx + 0x5818], 0
mov dword [ecx + 0x581c], 0
mov dword [ecx + 0x5828], 0
mov dword [ecx + 0x582c], 0
jmp 0x5b742f
cmp dword [esp + 0x8c], 0
mov esi, dword [esp + 0xa4]
jne 0x5b799e
cmp dword [esp + 0x50], 0
movss xmm1, dword [esp + 0x98]
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0xa8]
je 0x5b7436
cmp dword [esp + 0x64], 0
je 0x5b78a2
comisd xmm2, xmmword [esp + 0x30]
movaps xmm0, xmm1
jbe 0x5b789a
xorps xmm0, xmmword [0x660190]
xor eax, eax
mov dword [esp + 0x64], eax
jmp 0x5b78de
movsd xmm0, qword [esp + 0x48]
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jnp 0x5b78ed
movsd xmm1, qword [esp + 0x30]
subsd xmm0, xmm2
subsd xmm1, xmm2
divsd xmm1, xmm0
movss xmm0, dword [esp + 0x60]
subss xmm0, dword [esp + 0x94]
cvtps2pd xmm0, xmm0
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss xmm1, dword [0x660184]
comiss xmm1, xmm0
jbe 0x5b78f0
jmp 0x5b78fc
xorps xmm0, xmm0
movss xmm1, dword [0x660180]
minss xmm1, xmm0
movss xmm0, dword [esp + 0x94]
movaps xmm3, xmm0
movsd qword [esp + 0x48], xmm2
movss xmm2, dword [esp + 0x18]
addss xmm0, xmm1
movss dword [esp + 0x98], xmm1
movss dword [esp + 0x60], xmm3
comiss xmm2, xmm0
movss dword [esp + 0x94], xmm0
jbe 0x5b7943
movss dword [esp + 0x94], xmm2
jmp 0x5b742f
movss xmm2, dword [esp + 0x1c]
comiss xmm0, xmm2
jbe 0x5b742f
movss dword [esp + 0x94], xmm2
jmp 0x5b742f
mov eax, dword [esp + 0xa4]
push 1
push dword [eax + 4]
call fcn.005aaed0
add esp, 8
xor eax, eax
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.005b5f20
mov ecx, dword [esp + 0x12e4]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.0058f0d5
add esp, 0x12d8
ret
cmp dword [esp + 0x38], 0
lea edi, [esi + 0xd58]
jne 0x5b79b4
push edi
call fcn.005b5ca0
add esp, 4
push 1
lea eax, [edi + 4]
push eax
lea eax, [esi + 0x58]
push eax
lea eax, [esi + 0x158]
push eax
call fcn.005b3da0
add esp, 0x10
test eax, eax
je 0x5b7974
lea eax, [esi + 0x170]
push eax
mov eax, dword [eax]
add eax, dword [esp + 0x8c]
push eax
push dword [esi + 4]
call fcn.005aaee0
add esp, 0xc
test eax, eax
je 0x5b7974
mov eax, 1
jmp 0x5b7976