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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c4
mov eax, dword [0x766480]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x4c]
mov ecx, dword [0xf89720]
push eax
lea ecx, [ecx + 0x220]
call fcn.0065e5c0
mov ecx, dword [0xf89720]
lea eax, [esp + 0x2c]
push eax
call fcn.00663e50
mov ecx, dword [0xf89720]
lea eax, [esp + 0x38]
push eax
call fcn.00663ef0
movss xmm1, dword [esp + 0x30]
movss xmm0, dword [esp + 0x2c]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [esp + 0x34]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x5f38fd
sqrtsd xmm0, xmm0
jmp 0x5f3902
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [0x701968]
comiss xmm0, xmm1
jb 0x5f392a
xorps xmm1, xmm1
xorps xmm0, xmm0
movss dword [esp + 0x10], xmm1
movss dword [esp + 0x2c], xmm1
jmp 0x5f395a
movss xmm0, dword [0x70196c]
divss xmm0, xmm1
movaps xmm1, xmm0
mulss xmm1, dword [esp + 0x2c]
movss dword [esp + 0x10], xmm1
movss dword [esp + 0x2c], xmm1
movaps xmm1, xmm0
mulss xmm1, dword [esp + 0x30]
mulss xmm0, dword [esp + 0x34]
movss dword [esp + 0x34], xmm0
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x38]
movss dword [esp + 0x30], xmm1
movss dword [esp + 0x24], xmm1
movss xmm1, dword [esp + 0x3c]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [esp + 0x40]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x5f39aa
sqrtsd xmm0, xmm0
jmp 0x5f39af
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [0x701968]
cvtsd2ss xmm0, xmm0
comiss xmm1, xmm0
jb 0x5f39cb
xorps xmm2, xmm2
xorps xmm3, xmm3
xorps xmm1, xmm1
jmp 0x5f39ef
movss xmm1, dword [0x70196c]
divss xmm1, xmm0
movaps xmm2, xmm1
movaps xmm3, xmm1
mulss xmm2, dword [esp + 0x38]
mulss xmm3, dword [esp + 0x3c]
mulss xmm1, dword [esp + 0x40]
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [esp + 0x84], xmm0
movss xmm0, dword [esp + 0x4c]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x54]
movss dword [esp + 0x40], xmm1
movss dword [esp + 0x3c], xmm3
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x60], xmm0
movss dword [esp + 0x70], xmm2
movss dword [esp + 0x74], xmm3
movss dword [esp + 0x78], xmm1
call fcn.00667b20
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [eax + 0xa0]
call fcn.00665a90
call fcn.00667b20
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [eax + 0xa0]
call fcn.00665a60
mov eax, dword [0xf85098]
mov eax, dword [eax + 4]
movss xmm2, dword [eax + 0x1c]
movss dword [esp + 0x58], xmm2
movss xmm1, dword [eax + 0x20]
movss dword [esp + 0x5c], xmm1
movss xmm0, dword [eax + 0x24]
movss dword [esp + 0x60], xmm0
mov eax, dword [esp + 0x60]
movss xmm0, dword [ebp + 8]
mov dword [esp + 0x6c], eax
movzx eax, byte [0xf89701]
push eax
push ecx
unpcklps xmm2, xmm1
lea eax, [esp + 0x6c]
movss dword [esp], xmm0
push eax
movq qword [esp + 0x64], xmm2
movq qword [esp + 0x70], xmm2
call fcn.005bcdb0
mov ecx, eax
call fcn.005bc760
mov eax, dword [esp + 0x60]
movq xmm0, qword [esp + 0x58]
mov dword [esp + 0x6c], eax
movzx eax, byte [0xf89701]
push eax
movq qword [esp + 0x68], xmm0
lea eax, [esp + 0x68]
movss xmm0, dword [ebp + 8]
push ecx
movss dword [esp], xmm0
push eax
call fcn.005bdab0
mov ecx, eax
call fcn.005bd6a0
mov ecx, dword [0xf89820]
call fcn.005ee640
cmp dword [0xf89760], 1
jne 0x5f3b6f
mov ecx, 0xf89918
call fcn.005d5ed0
mov ecx, 0xf89918
call fcn.005d6480
test al, al
je 0x5f3b6f
mov ecx, 0xf89918
call fcn.005d5cd0
mov ecx, 0xf89918
call fcn.005d6f00
movss xmm0, dword [ebp + 8]
mulss xmm0, dword [0x711608]
push ecx
cvttss2si ebx, dword [ebp + 8]
addss xmm0, dword [0x101fb6c]
movss dword [0x101fb6c], xmm0
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x70f040]
movss dword [esp], xmm0
call fcn.006074e0
movd xmm0, ebx
mov ecx, 0xf8c198
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.006130e0
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
push ecx
mov ecx, 0xf89918
movss dword [esp], xmm0
call fcn.005da2b0
cmp byte [edi + 5], 0
je 0x5f3be9
mov ecx, dword [0xf89800]
call fcn.005c6670
movss xmm2, dword [ebp + 8]
mov eax, 1
subss xmm2, dword [0x70196c]
movss xmm1, dword [0xf8983c]
comiss xmm2, dword [0x70196c]
movss dword [esp + 0x10], xmm2
jbe 0x5f3c51
movss xmm4, dword [0xf89840]
xorps xmm3, xmm3
movss xmm5, dword [0x706418]
movaps xmm0, xmm4
addss xmm1, xmm0
comiss xmm1, xmm5
movss dword [0xf8983c], xmm1
jb 0x5f3c44
movaps xmm1, xmm3
movss dword [0xf8983c], xmm1
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm2, xmm0
ja 0x5f3c25
push dword [0xf89834]
push ecx
mov ecx, 0xf8c198
movss dword [esp], xmm1
call fcn.0060df40
mov ecx, dword [0xf89810]
test ecx, ecx
je 0x5f3c76
call fcn.0062d5b0
mov ecx, dword [0xf8982c]
test ecx, ecx
je 0x5f3c85
call fcn.00661910
mov ecx, dword [0xf89830]
test ecx, ecx
je 0x5f3c94
call fcn.00661d60
movss xmm1, dword [edi + 8]
movss xmm0, dword [ebp + 8]
comiss xmm0, xmm1
jb 0x5f3cef
mov eax, dword [edi + 0xc]
inc eax
mov dword [edi + 0xc], eax
cmp eax, dword [edi + 0x10]
jne 0x5f4300
movss xmm0, dword [0x706d94]
comiss xmm0, xmm1
mov dword [edi + 0xc], 0
jbe 0x5f4300
addss xmm1, dword [0x7012b4]
movss dword [edi + 8], xmm1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret 4
mov ecx, 0xf89dec
mov dword [edi + 0xc], 0
call fcn.005c1c30
cmp dword [0xf89744], 0
jne 0x5f3d7b
mov ecx, dword [0xf89720]
lea eax, [esp + 0x64]
push eax
lea ecx, [ecx + 0x220]
call fcn.0065e5c0
movss xmm0, dword [esp + 0x10]
mov esi, 1
movss xmm1, dword [0x70196c]
comiss xmm0, xmm1
jbe 0x5f3d65
nop word [eax + eax]
mov ecx, 0xf89dec
call fcn.005bf7c0
movss xmm1, dword [esp + 0x10]
inc esi
movd xmm0, esi
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
ja 0x5f3d40
movss xmm1, dword [0x70196c]
movss xmm0, dword [ebp + 8]
comiss xmm0, xmm1
jb 0x5f3d83
push 0xffffffffffffffff
mov ecx, 0xf89dec
call fcn.005c4eb0
movss xmm1, dword [0x70196c]
cmp dword [0xf89744], 1
jne 0x5f3ddb
movss xmm0, dword [esp + 0x10]
mov esi, 1
comiss xmm0, xmm1
jbe 0x5f3dbd
nop dword [eax]
mov ecx, 0xf89dec
call fcn.005bf7c0
movss xmm1, dword [esp + 0x10]
inc esi
movd xmm0, esi
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
ja 0x5f3da0
movss xmm0, dword [0x70196c]
movss xmm1, dword [ebp + 8]
comiss xmm1, xmm0
jb 0x5f3de8
push 0xffffffffffffffff
mov ecx, 0xf89dec
call fcn.005c4eb0
movss xmm1, dword [ebp + 8]
movss xmm0, dword [0x70196c]
cmp dword [0xf89744], 2
jne 0x5f3e1c
comiss xmm1, xmm0
mov esi, 1
jbe 0x5f3e1c
nop dword [eax + eax]
mov ecx, 0xf89dec
call fcn.005bf7c0
movss xmm1, dword [ebp + 8]
inc esi
movd xmm0, esi
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
ja 0x5f3e00
mov ecx, edi
call fcn.005f2290
mov esi, eax
test ebx, ebx
jle 0x5f4154
nop dword [eax]
test esi, esi
je 0x5f3e3d
push 1
mov ecx, esi
call fcn.00601110
mov ecx, 0xf89e30
call fcn.00652530
mov ecx, dword [0xf897fc]
test ecx, ecx
je 0x5f3e5c
push 0
push 0
push 0
call fcn.0066b290
mov eax, dword [0xf89834]
lea edx, [esp + 0x88]
push edx
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x98]
lea eax, [esp + 0x88]
push eax
push 0
push eax
call fcn.00403838
movss xmm0, dword [esp + 0xb8]
lea eax, [esp + 0x18]
mov ecx, dword [0xf89720]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0xbc]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0xc0]
push eax
movss dword [esp + 0x4c], xmm0
call fcn.00663e50
mov ecx, dword [0xf89720]
lea eax, [esp + 0x64]
push eax
call fcn.00663ef0
movss xmm1, dword [esp + 0x1c]
movss xmm0, dword [esp + 0x18]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [esp + 0x20]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x5f3f09
sqrtsd xmm0, xmm0
jmp 0x5f3f0e
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [0x701968]
cvtsd2ss xmm0, xmm0
comiss xmm1, xmm0
jb 0x5f3f39
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
jmp 0x5f3f70
movss xmm1, dword [0x70196c]
divss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x18]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x1c]
mulss xmm0, xmm1
mulss xmm1, dword [esp + 0x20]
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x20], xmm1
movss xmm1, dword [esp + 0x68]
movss xmm0, dword [esp + 0x64]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [esp + 0x6c]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x5f3fa8
sqrtsd xmm0, xmm0
jmp 0x5f3fad
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [0x701968]
comiss xmm0, xmm1
jb 0x5f3fdb
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
jmp 0x5f4017
movss xmm0, dword [0x70196c]
divss xmm0, xmm1
movss xmm1, dword [esp + 0x64]
mulss xmm1, xmm0
movss dword [esp + 0x64], xmm1
movss xmm1, dword [esp + 0x68]
mulss xmm1, xmm0
movss dword [esp + 0x68], xmm1
movss xmm1, dword [esp + 0x6c]
mulss xmm1, xmm0
movss dword [esp + 0x6c], xmm1
movss xmm1, dword [esp + 0x10]
mov ecx, 0xf8c198
addss xmm1, dword [0x711b44]
movss dword [esp + 0x44], xmm1
call fcn.0060c910
movss xmm1, dword [esp + 0x18]
movss xmm2, dword [esp + 0x20]
movss xmm3, dword [0x706bb8]
mulss xmm1, dword [0x711b44]
mulss xmm2, dword [0x711b44]
cmp eax, 0x43
jne 0x5f4065
mov byte [esp + 0x28], 1
jmp 0x5f4076
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x10], xmm0
mov byte [esp + 0x28], 0
push dword [esp + 0x28]
movss xmm0, dword [esp + 0x48]
mov ecx, 0xf8c0d8
addss xmm2, dword [esp + 0x4c]
addss xmm1, dword [esp + 0x18]
sub esp, 0x18
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x10], xmm3
movss dword [esp + 0xc], xmm3
movss dword [esp + 8], xmm2
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
call fcn.00603950
mov ecx, 0xf8c198
call fcn.0060c910
movss xmm0, dword [esp + 0x18]
movss xmm1, dword [esp + 0x20]
mulss xmm0, dword [0x711b44]
mov byte [esp + 0x24], 1
mulss xmm1, dword [0x711b44]
cmp eax, 0x65
je 0x5f40f7
mov byte [esp + 0x24], 0
push dword [esp + 0x24]
movss xmm2, dword [esp + 0x48]
mov ecx, 0xf8c138
addss xmm1, dword [esp + 0x4c]
addss xmm0, dword [esp + 0x18]
sub esp, 0x18
movss dword [esp + 0x14], xmm2
movss xmm2, dword [0x706bb8]
movss dword [esp + 0x10], xmm2
movss dword [esp + 0xc], xmm2
movss dword [esp + 8], xmm1
movss xmm1, dword [esp + 0x2c]
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
call fcn.00603950
sub ebx, 1
jne 0x5f3e30
mov esi, dword [0xf89804]
test esi, esi
je 0x5f42e5
push 0x100
lea eax, [esp + 0xcc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movss xmm0, dword [0x711b40]
add esp, 0xc
movss xmm2, dword [0x743cf0]
comiss xmm0, xmm2
jb 0x5f4263
xorps xmm1, xmm1
comiss xmm2, xmm1
jb 0x5f41fe
cmp byte [0xf8fac8], 0
jne 0x5f41fe
push str.heart.wav
push str.c:MP_ProjectSoundEffectMsnd_
lea eax, [esp + 0xd0]
mov byte [0xf8fac8], 1
push 0x701a8c
push eax
call fcn.0044f6e0
add esp, 0x10
lea eax, [esp + 0xc8]
push 1
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00667b20
mov ecx, eax
call fcn.00666c00
mov eax, dword [esp + 0x14]
mov byte [eax + 0x15], 1
mov ecx, dword [esp + 0x14]
call fcn.006663f0
mov esi, dword [0xf89804]
xorps xmm1, xmm1
cmp byte [esi + 0x129], 0
jne 0x5f4214
mov byte [esi + 0x11e], 1
mov esi, dword [0xf89804]
movss xmm0, dword [0x70f034]
comiss xmm0, dword [0x743cf0]
jb 0x5f4237
cmp byte [esi + 0x11f], 0
jne 0x5f4247
mov byte [esi + 0x114], 1
jmp 0x5f4247
cmp byte [esi + 0x11f], 0
jne 0x5f4247
mov byte [esi + 0x114], 0
cmp byte [0xf8fac8], 1
jne 0x5f42e5
comiss xmm1, dword [0x743cf0]
jb 0x5f42e5
jmp 0x5f429b
cmp byte [esi + 0x11e], 0
je 0x5f42e5
cmp byte [esi + 0x129], 0
jne 0x5f4282
mov byte [esi + 0x11e], 0
mov esi, dword [0xf89804]
cmp byte [esi + 0x11f], 0
jne 0x5f4292
mov byte [esi + 0x114], 0
cmp byte [0xf8fac8], 0
je 0x5f42e5
push str.heart.wav
push str.c:MP_ProjectSoundEffectMsnd_
lea eax, [esp + 0xd0]
push 0x701a8c
push eax
call fcn.0044f6e0
add esp, 0x10
lea eax, [esp + 0xc8]
push 1
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00667b20
mov ecx, eax
call fcn.00666c00
mov ecx, dword [esp + 0x14]
call fcn.006665c0
mov byte [0xf8fac8], 0
mov ecx, dword [0xf8982c]
test ecx, ecx
je 0x5f42f6
push 3
call fcn.006618a0
mov ecx, 0xf89848
call fcn.005cf220
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret 4