Function at 0x14005ecd0
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 [0x14059d8b0]
mov qword [rsp + 0x58], r14
movaps xmmword [rsp + 0x30], xmm6
cmp byte [rdi + 0xd3], 0
je 0x14005ed06
test byte [rdi + 0xc], 2
jne 0x14005ed06
mov byte [rdi + 0xd3], 0
cmp byte [rdi + 0x2d38], 0
mov r14d, 2
jne 0x14005ee1f
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x50], rbp
test rcx, rcx
je 0x14005ee13
lea rdx, [0x14014add0]
call fcn.140059e30
mov rbx, rax
test rax, rax
je 0x14005ee13
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 0x14005ee0a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14005ee0a
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 0x14005ee0a
mov rax, qword [0x14059d8b0]
mov rbp, rsi
test rax, rax
je 0x14005ed99
inc dword [rax + 0x3b8]
mov rdx, qword [0x14059d8b8]
mov rcx, rbp
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14005ee0a
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 0x14005edf7
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14059d8b0]
test rax, rax
je 0x14005ede5
dec dword [rax + 0x3b8]
mov rdx, qword [0x14059d8b8]
mov rcx, rsi
call qword [0x1401a5008]
jmp 0x14005ee13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, rbp
mov rcx, rsi
call fcn.14005b560
jmp 0x14005edd3
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 0x14005ee60
subss xmm0, dword [rdi + 0x18]
comiss xmm6, xmm0
movss dword [rdi + 0x2d3c], xmm0
jb 0x14005ee60
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14005ee53
call fcn.1400617d0
jmp 0x14005ee5a
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 [0x14059d8b0]
mov rcx, qword [rax + 0xb0]
test rcx, rcx
jne 0x14005eeb9
mov rax, qword [rax + 0xa0]
mov rcx, qword [rax + 0x48]
mov rcx, qword [rcx]
call fcn.140061bb0
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.140067e80
mov rdx, qword [rdi + 0xa0]
lea rcx, [rdi + 0x1cb0]
mov rdx, qword [rdx + 8]
call fcn.14006a630
lea rcx, [rdi + 0x1cb0]
call fcn.14006a570
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 0x14005efae
mov eax, dword [rdi + 0x1d7c]
cmp eax, dword [rdi + 0x1a10]
jne 0x14005efae
mov rcx, qword [0x14059d8b0]
cmp dword [rcx + 0x1a10], eax
jne 0x14005ef9f
mov dword [rcx + 0x1a18], eax
cmp dword [rcx + 0x1a14], eax
jne 0x14005efae
mov byte [rcx + 0x1a23], 1
cmp dword [rdi + 0x1a08], esi
jne 0x14005efbc
mov dword [rdi + 0x1a0c], esi
mov eax, dword [rdi + 0x1a00]
movss xmm1, dword [rdi + 0x18]
test eax, eax
je 0x14005efde
movaps xmm0, xmm1
addss xmm0, dword [rdi + 0x1a0c]
movss dword [rdi + 0x1a0c], xmm0
mov dword [rdi + 0x1a08], eax
movaps xmm0, xmm1
mov eax, dword [rdi + 0x1a10]
movaps xmm2, xmm1
mov ecx, eax
mov dword [rdi + 0x1a00], esi
mov byte [rdi + 0x1a04], sil
cmp dword [rdi + 0x1a18], eax
je 0x14005f064
cmp dword [rdi + 0x1a14], eax
jne 0x14005f064
test eax, eax
je 0x14005f064
mov rdx, qword [0x14059d8b0]
mov ecx, dword [rdx + 0x1a10]
test ecx, ecx
setne al
mov byte [rdx + 0x1a20], al
test ecx, ecx
je 0x14005f03c
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 xmm2, dword [rdi + 0x18]
mov ecx, dword [rdi + 0x1a10]
movaps xmm0, xmm2
test ecx, ecx
je 0x14005f07e
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 0x14005f0d7
cmp ecx, eax
je 0x14005f0d7
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 [0x14014af10]
lea rcx, [rdi + 0x125]
lea rax, [rdi + 0x49c]
mov edx, 0x80
nop dword [rax]
cmp byte [rcx - 1], sil
je 0x14005f14c
movss xmm0, dword [rax - 4]
comiss xmm6, xmm0
jbe 0x14005f145
movaps xmm0, xmm6
jmp 0x14005f14f
addss xmm0, dword [rdi + 0x18]
jmp 0x14005f14f
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rcx], sil
je 0x14005f16e
movss xmm0, dword [rax]
comiss xmm6, xmm0
jbe 0x14005f167
movaps xmm0, xmm6
jmp 0x14005f171
addss xmm0, dword [rdi + 0x18]
jmp 0x14005f171
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rcx + 1], sil
je 0x14005f191
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jbe 0x14005f18a
movaps xmm0, xmm6
jmp 0x14005f194
addss xmm0, dword [rdi + 0x18]
jmp 0x14005f194
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rcx + 2], sil
je 0x14005f1b5
movss xmm0, dword [rax + 8]
comiss xmm6, xmm0
jbe 0x14005f1ae
movaps xmm0, xmm6
jmp 0x14005f1b8
addss xmm0, dword [rdi + 0x18]
jmp 0x14005f1b8
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rcx, 4
add rax, 0x10
sub rdx, 1
jne 0x14005f130
call fcn.14005c810
call fcn.140063820
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 0x14005f253
divss xmm1, dword [0x14014aee0]
movss xmm0, dword [0x14014aeac]
divss xmm0, xmm1
jmp 0x14005f25b
movss xmm0, dword [0x14014af04]
movss dword [rdi + 0x3a4], xmm0
mov rdx, qword [0x14059d8b0]
mov rcx, qword [rdx + 0x1a58]
test rcx, rcx
je 0x14005f448
mov eax, dword [rdx + 0x1a10]
mov dword [rdx + 0x1a18], eax
cmp dword [rdx + 0x1a14], eax
jne 0x14005f295
mov byte [rdx + 0x1a23], 1
mov rcx, qword [rcx + 0x378]
mov r8, qword [0x14059d8b0]
cmp byte [rdx + 0x110], sil
je 0x14005f3fe
lea r9, [rdx + 0x108]
mov rax, r9
test r9, r9
jne 0x14005f2c6
lea rax, [r8 + 0x108]
movss xmm0, dword [rax]
movss xmm1, dword [0x14014af20]
comiss xmm0, xmm1
jb 0x14005f3fe
movss xmm0, dword [rax + 4]
comiss xmm0, xmm1
jb 0x14005f3fe
movss xmm4, dword [r9]
subss xmm4, dword [rdx + 0x1a2c]
movss xmm0, dword [rcx + 0x10]
movss xmm1, dword [r9 + 4]
subss xmm1, dword [rdx + 0x1a30]
ucomiss xmm0, xmm4
jp 0x14005f320
jne 0x14005f320
movss xmm0, dword [rcx + 0x14]
ucomiss xmm0, xmm1
jp 0x14005f320
je 0x14005f3ed
test dword [rcx + 0xc], 0x100
jne 0x14005f33e
comiss xmm6, dword [r8 + 0x2d3c]
jb 0x14005f33e
mov eax, dword [r8 + 0x1c]
mov dword [r8 + 0x2d3c], eax
mov eax, dword [rcx + 0xb0]
test al, 1
je 0x14005f3ed
movss xmm2, dword [rcx + 0x10]
and eax, 0xfffffff1
movss xmm3, dword [rcx + 0x14]
mov dword [rcx + 0xb0], eax
mov dword [rcx + 0xbc], 0x7f7fffff
mov dword [rcx + 0xc0], 0x7f7fffff
cvttss2si eax, xmm4
movd xmm0, eax
cvttss2si eax, xmm1
cvtdq2ps xmm0, xmm0
movd xmm1, eax
movss dword [rcx + 0x10], xmm0
subss xmm0, xmm2
cvtdq2ps xmm1, xmm1
movss dword [rcx + 0x14], xmm1
subss xmm1, xmm3
addss xmm0, dword [rcx + 0xd4]
addss xmm1, dword [rcx + 0xd8]
movss dword [rcx + 0xd4], xmm0
movss dword [rcx + 0xd8], xmm1
movss xmm1, dword [rcx + 0x14]
movss xmm0, dword [rcx + 0x10]
subss xmm1, xmm3
subss xmm0, xmm2
addss xmm1, dword [rcx + 0xf0]
addss xmm0, dword [rcx + 0xec]
movss dword [rcx + 0xf0], xmm1
movss dword [rcx + 0xec], xmm0
mov rcx, qword [rdx + 0x1a58]
call fcn.140058de0
jmp 0x14005f4c0
mov ecx, dword [r8 + 0x1a10]
test ecx, ecx
setne al
mov byte [r8 + 0x1a20], al
test ecx, ecx
je 0x14005f423
mov dword [r8 + 0x1a1c], esi
mov byte [r8 + 0x1a22], sil
mov dword [r8 + 0x1a10], esi
mov dword [r8 + 0x1a28], esi
mov byte [r8 + 0x1a21], sil
mov qword [r8 + 0x1a38], rsi
mov qword [rdx + 0x1a58], rsi
jmp 0x14005f4c0
mov rcx, qword [rdx + 0x1a38]
test rcx, rcx
je 0x14005f4c0
mov eax, dword [rdx + 0x1a10]
cmp dword [rcx + 0x50], eax
jne 0x14005f4c0
mov dword [rdx + 0x1a18], eax
cmp dword [rdx + 0x1a14], eax
jne 0x14005f474
mov byte [rdx + 0x1a23], 1
cmp byte [rdx + 0x110], sil
jne 0x14005f4c0
mov rdx, qword [0x14059d8b0]
mov ecx, dword [rdx + 0x1a10]
test ecx, ecx
setne al
mov byte [rdx + 0x1a20], al
test ecx, ecx
je 0x14005f4a6
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
call fcn.140062b50
mov rax, qword [0x14059d8b0]
movsxd rcx, dword [rax + 0x1a90]
test ecx, ecx
jle 0x14005f50c
mov rax, qword [rax + 0x1a98]
lea rdx, [rcx - 1]
lea r8, [rdx + rdx*2]
add rax, 8
shl r8, 4
add r8, rax
mov rax, qword [r8]
test rax, rax
je 0x14005f502
test dword [rax + 0xc], 0x8000000
jne 0x14005f522
sub r8, 0x30
sub rdx, 1
jns 0x14005f4f1
cmp qword [rdi + 0x1b68], rsi
je 0x14005f541
movss xmm0, dword [rdi + 0x1b84]
comiss xmm0, xmm6
jbe 0x14005f541
movss xmm1, dword [rdi + 0x18]
mulss xmm1, dword [0x14014aec8]
addss xmm1, dword [rdi + 0x1ca8]
minss xmm1, dword [0x14014aeac]
jmp 0x14005f55e
movss xmm0, dword [rdi + 0x18]
mulss xmm0, dword [0x14014aed0]
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.140063b50
cmp dword [rdi + 0x1a10], esi
jne 0x14005f630
mov rdx, qword [rdi + 0x1b28]
test rdx, rdx
je 0x14005f630
cmp byte [rdx + 0x7a], sil
je 0x14005f630
test dword [rdx + 0xc], 0x40000
jne 0x14005f630
cmp byte [rdi + 0x120], sil
jne 0x14005f630
mov rcx, qword [0x14059d8b0]
movsxd rax, dword [rcx + 0x3c]
test eax, eax
js 0x14005f630
movss xmm0, dword [rcx + rax*4 + 0x498]
ucomiss xmm0, xmm6
jp 0x14005f5ed
jne 0x14005f5ed
mov al, 1
jmp 0x14005f5ef
xor eax, eax
test al, al
je 0x14005f630
cmp dword [rdi + 0x1b30], esi
je 0x14005f61f
mov eax, dword [rdi + 0x1b90]
cmp eax, 0x7fffffff
je 0x14005f61f
cmp byte [rdi + 0x121], sil
cmovne r14d, esi
add r14d, eax
mov dword [rdx + 0x3d4], r14d
jmp 0x14005f630
movzx eax, byte [rdi + 0x121]
neg al
sbb ecx, ecx
mov dword [rdx + 0x3d4], ecx
mov edx, esi
movaps xmm6, xmmword [rsp + 0x30]
mov r14, qword [rsp + 0x58]
mov dword [rdi + 0x1b90], 0x7fffffff
cmp dword [rdi + 0x19a0], esi
je 0x14005f67a
mov r8, rsi
mov rax, qword [rdi + 0x19a8]
lea r8, [r8 + 8]
inc edx
mov rcx, qword [r8 + rax - 8]
movzx eax, byte [rcx + 0x7a]
mov byte [rcx + 0x7b], al
mov byte [rcx + 0x7a], sil
mov byte [rcx + 0x7c], sil
cmp edx, dword [rdi + 0x19a0]
jne 0x14005f651
mov rax, qword [rdi + 0x1b28]
test rax, rax
je 0x14005f6ec
cmp byte [rax + 0x7b], sil
jne 0x14005f6ec
mov rax, qword [0x14059d8b0]
mov ecx, dword [rax + 0x19a0]
sub ecx, 1
js 0x14005f6ec
mov r8, qword [rax + 0x19a8]
movsxd rax, ecx
lea rdx, [r8 + rax*8]
nop dword [rax]
mov rax, qword [rdx]
test rax, rax
je 0x14005f6c7
cmp byte [rax + 0x7b], sil
je 0x14005f6c7
test dword [rax + 0xc], 0x1000000
je 0x14005f6d2
sub rdx, 8
sub ecx, 1
jns 0x14005f6b0
jmp 0x14005f6ec
movsxd rax, ecx
mov rcx, qword [r8 + rax*8]
mov rax, qword [rcx + 0x390]
test rax, rax
cmovne rcx, rax
call fcn.140058de0
mov ecx, dword [rdi + 0x19c4]
test ecx, ecx
jns 0x14005f712
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.140064580
mov dword [rdi + 0x19c0], esi
mov ecx, dword [rdi + 0x1aa4]
test ecx, ecx
jns 0x14005f73e
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.140064620
mov dword [rdi + 0x1aa0], esi
mov rcx, qword [rdi + 0x1b28]
call fcn.140056c20
mov rax, qword [0x14059d8b0]
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.140052d40