Function at 0x14005f080
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [0x14013f6b0]
mov qword [rsp + 0x58], r14
movaps xmmword [rsp + 0x30], xmm6
cmp byte [rdi + 0xd3], 0
je 0x14005f0b6
test byte [rdi + 0xc], 2
jne 0x14005f0b6
mov byte [rdi + 0xd3], 0
cmp byte [rdi + 0x2d38], 0
mov r14d, 2
jne 0x14005f1cf
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x50], rbp
test rcx, rcx
je 0x14005f1c3
lea rdx, [0x1400e4d60]
call fcn.140059f80
mov rbx, rax
test rax, rax
je 0x14005f1c3
mov r8d, r14d
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14005f1ba
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14005f1ba
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14005f1ba
mov rax, qword [0x14013f6b0]
mov rbp, rsi
test rax, rax
je 0x14005f149
inc dword [rax + 0x3b8]
mov rdx, qword [0x14013f6b8]
mov rcx, rbp
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14005f1ba
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x14005f1a7
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14013f6b0]
test rax, rax
je 0x14005f195
dec dword [rax + 0x3b8]
mov rdx, qword [0x14013f6b8]
mov rcx, rsi
call qword [0x14013e008]
jmp 0x14005f1c3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, rbp
mov rcx, rsi
call fcn.14005b660
jmp 0x14005f183
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0x50]
mov byte [rdi + 0x2d38], 1
movss xmm0, dword [rdi + 0x2d3c]
xorps xmm6, xmm6
xor esi, esi
comiss xmm0, xmm6
jbe 0x14005f210
subss xmm0, dword [rdi + 0x18]
comiss xmm6, xmm0
movss dword [rdi + 0x2d3c], xmm0
jb 0x14005f210
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14005f203
call fcn.140061940
jmp 0x14005f20a
mov byte [rdi + 0x3a0], 1
mov dword [rdi + 0x2d3c], esi
inc dword [rdi + 0x1990]
movss xmm0, dword [rdi + 0x18]
mov rax, qword [rdi + 0xa0]
mov byte [rdi + 1], 1
mov dword [rdi + 0x2d14], esi
mov dword [rdi + 0x19e0], esi
cvtps2pd xmm0, xmm0
addsd xmm0, qword [rdi + 0x1988]
movsd qword [rdi + 0x1988], xmm0
mov byte [rax], 1
mov rax, qword [0x14013f6b0]
mov rcx, qword [rax + 0xb0]
test rcx, rcx
jne 0x14005f269
mov rax, qword [rax + 0xa0]
mov rcx, qword [rax + 0x48]
mov rcx, qword [rcx]
call fcn.140061d50
movss xmm0, dword [rdi + 0x10]
lea rcx, [rdi + 0x1cb0]
movss xmm1, dword [rdi + 0x14]
mov eax, dword [rdi + 0x15d4]
mov qword [rsp + 0x20], rsi
movups xmm2, xmmword [rsp + 0x20]
mov dword [rdi + 0x190c], eax
shufps xmm2, xmm2, 0xd2
movss xmm2, xmm0
shufps xmm2, xmm2, 0x27
movss xmm2, xmm1
shufps xmm2, xmm2, 0x39
movups xmmword [rdi + 0x1910], xmm2
call fcn.140068340
mov rdx, qword [rdi + 0xa0]
lea rcx, [rdi + 0x1cb0]
mov rdx, qword [rdx + 8]
call fcn.14006aaf0
lea rcx, [rdi + 0x1cb0]
call fcn.14006aa30
movzx eax, byte [rdi + 0x15d1]
neg al
mov byte [rdi + 0x1c58], sil
mov eax, esi
mov qword [rdi + 0x1c60], rsi
sbb ecx, ecx
mov qword [rdi + 0x1c6c], rsi
and ecx, r14d
mov dword [rdi + 0x1c68], esi
cmp byte [rdi + 0x15d0], sil
setne al
or ecx, eax
mov dword [rdi + 0x1ce0], ecx
mov qword [rdi + 0x1c7c], rsi
mov qword [rdi + 0x1c74], rsi
cmp byte [rdi + 0x1d5c], sil
je 0x14005f35e
mov eax, dword [rdi + 0x1d7c]
cmp eax, dword [rdi + 0x1a10]
jne 0x14005f35e
mov rcx, qword [0x14013f6b0]
cmp dword [rcx + 0x1a10], eax
jne 0x14005f34f
mov dword [rcx + 0x1a18], eax
cmp dword [rcx + 0x1a14], eax
jne 0x14005f35e
mov byte [rcx + 0x1a23], 1
cmp dword [rdi + 0x1a08], esi
jne 0x14005f36c
mov dword [rdi + 0x1a0c], esi
mov eax, dword [rdi + 0x1a00]
movss xmm1, dword [rdi + 0x18]
movaps xmm3, xmm1
test eax, eax
je 0x14005f391
movaps xmm0, xmm1
addss xmm0, dword [rdi + 0x1a0c]
movss dword [rdi + 0x1a0c], xmm0
mov dword [rdi + 0x1a08], eax
movaps xmm0, xmm3
mov eax, dword [rdi + 0x1a10]
movaps xmm2, xmm1
mov dword [rdi + 0x1a00], esi
mov byte [rdi + 0x1a04], sil
cmp dword [rdi + 0x1a18], eax
je 0x14005f40f
cmp dword [rdi + 0x1a14], eax
jne 0x14005f40f
test eax, eax
je 0x14005f40f
mov rdx, qword [0x14013f6b0]
mov ecx, dword [rdx + 0x1a10]
test ecx, ecx
setne al
mov byte [rdx + 0x1a20], al
test ecx, ecx
je 0x14005f3ed
mov dword [rdx + 0x1a1c], esi
mov byte [rdx + 0x1a22], sil
mov dword [rdx + 0x1a10], esi
mov dword [rdx + 0x1a28], esi
mov byte [rdx + 0x1a21], sil
mov qword [rdx + 0x1a38], rsi
movss xmm0, dword [rdi + 0x18]
movaps xmm2, xmm0
mov ecx, dword [rdi + 0x1a10]
test ecx, ecx
je 0x14005f42f
movaps xmm0, xmm2
addss xmm0, dword [rdi + 0x1a1c]
movss dword [rdi + 0x1a1c], xmm0
movaps xmm0, xmm2
mov rax, qword [rdi + 0x1a38]
addss xmm0, dword [rdi + 0x1a50]
mov qword [rdi + 0x1a40], rax
movzx eax, byte [rdi + 0x1a22]
mov byte [rdi + 0x1a24], al
mov eax, dword [rdi + 0x2ce8]
movss dword [rdi + 0x1a50], xmm0
mov dword [rdi + 0x1a14], ecx
mov dword [rdi + 0x1a18], esi
mov byte [rdi + 0x1a23], sil
mov byte [rdi + 0x1a20], sil
test eax, eax
je 0x14005f488
cmp ecx, eax
je 0x14005f488
mov dword [rdi + 0x2ce8], esi
mov eax, dword [rdi + 0x1dcc]
lea rcx, [rdi + 0xc98]
lea rdx, [rdi + 0x498]
mov dword [rdi + 0x1dd0], eax
mov r8d, 0x800
mov qword [rdi + 0x1dc8], 0x7f7fffff
mov byte [rdi + 0x1d5d], sil
call sub.VCRUNTIME140.dll_memcpy
movss xmm1, dword [0x1400e4ea4]
lea rcx, [rdi + 0x125]
lea rax, [rdi + 0x49c]
mov r8d, 0x80
nop dword [rax + rax]
cmp byte [rcx - 1], sil
je 0x14005f4fc
movss xmm0, dword [rax - 4]
comiss xmm6, xmm0
jbe 0x14005f4f5
movaps xmm0, xmm6
jmp 0x14005f4ff
addss xmm0, dword [rdi + 0x18]
jmp 0x14005f4ff
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rcx], sil
je 0x14005f51e
movss xmm0, dword [rax]
comiss xmm6, xmm0
jbe 0x14005f517
movaps xmm0, xmm6
jmp 0x14005f521
addss xmm0, dword [rdi + 0x18]
jmp 0x14005f521
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rcx + 1], sil
je 0x14005f541
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jbe 0x14005f53a
movaps xmm0, xmm6
jmp 0x14005f544
addss xmm0, dword [rdi + 0x18]
jmp 0x14005f544
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rcx + 2], sil
je 0x14005f565
movss xmm0, dword [rax + 8]
comiss xmm6, xmm0
jbe 0x14005f55e
movaps xmm0, xmm6
jmp 0x14005f568
addss xmm0, dword [rdi + 0x18]
jmp 0x14005f568
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rcx, 4
add rax, 0x10
sub r8, 1
jne 0x14005f4e0
call fcn.14005c9a0
call fcn.1400639b0
movsxd rax, dword [rdi + 0x2f78]
movss xmm1, dword [rdi + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [rdi + rax*4 + 0x2d98]
addss xmm0, dword [rdi + 0x2f7c]
movss dword [rdi + 0x2f7c], xmm0
movss dword [rdi + rax*4 + 0x2d98], xmm1
mov eax, 0x88888889
mov ecx, dword [rdi + 0x2f78]
movss xmm1, dword [rdi + 0x2f7c]
inc ecx
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x78
sub ecx, eax
comiss xmm1, xmm6
mov dword [rdi + 0x2f78], ecx
jbe 0x14005f603
divss xmm1, dword [0x1400e4e74]
movss xmm0, dword [0x1400e4e3c]
divss xmm0, xmm1
jmp 0x14005f60b
movss xmm0, dword [0x1400e4e98]
movss dword [rdi + 0x3a4], xmm0
call fcn.140063d00
call fcn.140062cf0
mov r8, qword [0x14013f6b0]
mov eax, dword [r8 + 0x1a90]
sub eax, 1
js 0x14005f66b
mov r8, qword [r8 + 0x1a98]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
nop dword [rax]
mov rax, qword [r8]
test rax, rax
je 0x14005f661
test dword [rax + 0xc], 0x8000000
jne 0x14005f681
sub r8, 0x30
sub rdx, 1
jns 0x14005f650
cmp qword [rdi + 0x1b68], rsi
je 0x14005f6a0
movss xmm0, dword [rdi + 0x1b84]
comiss xmm0, xmm6
jbe 0x14005f6a0
movss xmm1, dword [rdi + 0x18]
mulss xmm1, dword [0x1400e4e58]
addss xmm1, dword [rdi + 0x1ca8]
minss xmm1, dword [0x1400e4e3c]
jmp 0x14005f6bd
movss xmm0, dword [rdi + 0x18]
mulss xmm0, dword [0x1400e4e60]
movss xmm1, dword [rdi + 0x1ca8]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rdi + 0x1ca8], xmm1
mov dword [rdi + 0x1d58], esi
mov qword [rdi + 0x2f84], 0xffffffffffffffff
mov dword [rdi + 0x2f80], 0xffffffff
mov dword [rdi + 0x2d28], 0x3f800000
mov dword [rdi + 0x2d2c], 0x3f800000
call fcn.140063f20
cmp dword [rdi + 0x1a10], esi
jne 0x14005f785
mov rdx, qword [rdi + 0x1b28]
test rdx, rdx
je 0x14005f785
cmp byte [rdx + 0x7a], sil
je 0x14005f785
test dword [rdx + 0xc], 0x40000
jne 0x14005f785
cmp byte [rdi + 0x120], sil
jne 0x14005f785
mov rcx, qword [0x14013f6b0]
movsxd rax, dword [rcx + 0x3c]
test eax, eax
js 0x14005f785
movss xmm0, dword [rcx + rax*4 + 0x498]
ucomiss xmm0, xmm6
jp 0x14005f785
jne 0x14005f785
cmp dword [rdi + 0x1b30], esi
je 0x14005f774
mov eax, dword [rdi + 0x1b90]
cmp eax, 0x7fffffff
je 0x14005f774
cmp byte [rdi + 0x121], sil
cmovne r14d, esi
add r14d, eax
mov dword [rdx + 0x3d4], r14d
jmp 0x14005f785
movzx eax, byte [rdi + 0x121]
neg al
sbb ecx, ecx
mov dword [rdx + 0x3d4], ecx
mov r8d, esi
movaps xmm6, xmmword [rsp + 0x30]
mov r14, qword [rsp + 0x58]
mov dword [rdi + 0x1b90], 0x7fffffff
cmp dword [rdi + 0x19a0], esi
je 0x14005f7db
mov rdx, rsi
nop word [rax + rax]
mov rax, qword [rdi + 0x19a8]
lea rdx, [rdx + 8]
inc r8d
mov rcx, qword [rdx + rax - 8]
movzx eax, byte [rcx + 0x7a]
mov byte [rcx + 0x7b], al
mov byte [rcx + 0x7a], sil
mov byte [rcx + 0x7c], sil
cmp r8d, dword [rdi + 0x19a0]
jne 0x14005f7b0
mov rax, qword [rdi + 0x1b28]
test rax, rax
je 0x14005f84c
cmp byte [rax + 0x7b], sil
jne 0x14005f84c
mov rax, qword [0x14013f6b0]
mov ecx, dword [rax + 0x19a0]
sub ecx, 1
js 0x14005f84c
mov r8, qword [rax + 0x19a8]
movsxd rax, ecx
lea rdx, [r8 + rax*8]
nop dword [rax]
mov rax, qword [rdx]
test rax, rax
je 0x14005f827
cmp byte [rax + 0x7b], sil
je 0x14005f827
test dword [rax + 0xc], 0x1000000
je 0x14005f832
sub rdx, 8
sub ecx, 1
jns 0x14005f810
jmp 0x14005f84c
movsxd rax, ecx
mov rcx, qword [r8 + rax*8]
mov rax, qword [rcx + 0x390]
test rax, rax
cmovne rcx, rax
call fcn.140058f30
mov ecx, dword [rdi + 0x19c4]
test ecx, ecx
jns 0x14005f872
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x19c0]
test eax, eax
cmovg edx, eax
call fcn.140064950
mov dword [rdi + 0x19c0], esi
mov ecx, dword [rdi + 0x1aa4]
test ecx, ecx
jns 0x14005f89e
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x1aa0]
test eax, eax
cmovg edx, eax
call fcn.1400649f0
mov dword [rdi + 0x1aa0], esi
mov rcx, qword [rdi + 0x1b28]
call fcn.140056d50
mov rax, qword [0x14013f6b0]
lea rcx, str.DebugDefault
xor r8d, r8d
xor edx, edx
mov dword [rax + 0x1adc], 0x43c80000
mov dword [rax + 0x1ae0], 0x43c80000
mov dword [rax + 0x1ab4], 4
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
jmp fcn.140052d80