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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, qword [0x140086fb0]
movaps xmmword [rsp + 0x30], xmm6
cmp byte [rbx + 0xd3], 0
je 0x14000582a
test byte [rbx + 0xc], 2
jne 0x14000582a
mov byte [rbx + 0xd3], 0
cmp byte [rbx + 0x2d98], 0
mov r14d, 2
jne 0x140005937
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140005930
lea rdx, [0x140039a00]
call fcn.140002760
mov rdi, rax
test rax, rax
je 0x140005930
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 0x140005927
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140005927
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140005927
mov rax, qword [0x140086fb0]
mov rbp, rsi
test rax, rax
je 0x1400058b8
inc dword [rax + 0x3c8]
mov rdx, qword [0x140086fa0]
mov rcx, rbp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x140005927
mov r9, rdi
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, rdi
cmp rax, rbp
je 0x140005914
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140086fb0]
test rax, rax
je 0x140005903
dec dword [rax + 0x3c8]
mov rdx, qword [0x140086fa0]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140005930
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, rbp
mov rcx, rsi
call fcn.140011220
jmp 0x1400058f1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov byte [rbx + 0x2d98], 1
movss xmm0, dword [rbx + 0x2d9c]
xorps xmm6, xmm6
xor r15d, r15d
comiss xmm0, xmm6
jbe 0x14000597a
subss xmm0, dword [rbx + 0x18]
comiss xmm6, xmm0
movss dword [rbx + 0x2d9c], xmm0
jb 0x14000597a
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14000596c
call fcn.140011460
jmp 0x140005973
mov byte [rbx + 0x3b0], 1
mov dword [rbx + 0x2d9c], r15d
inc dword [rbx + 0x1990]
movss xmm0, dword [rbx + 0x18]
mov rax, qword [rbx + 0xa0]
mov rdx, qword [0x140086fb0]
mov byte [rbx + 1], 1
mov dword [rbx + 0x2d74], r15d
mov dword [rbx + 0x19f0], r15d
cvtps2pd xmm0, xmm0
addsd xmm0, qword [rbx + 0x1988]
movsd qword [rbx + 0x1988], xmm0
mov byte [rax], 1
mov rcx, qword [rdx + 0xb0]
test rcx, rcx
jne 0x1400059d5
mov rax, qword [rdx + 0xa0]
mov rcx, qword [rax + 0x48]
mov rcx, qword [rcx]
movss xmm0, dword [rdx + 0xa8]
mov rax, qword [rdx + 0x19f8]
mov qword [rdx + 0x18f0], rcx
mulss xmm0, dword [rcx]
mulss xmm0, dword [rcx + 4]
movss dword [rdx + 0x18fc], xmm0
test rax, rax
je 0x140005a1a
movss xmm1, dword [rax + 0x298]
mov rax, qword [0x140086fb0]
mulss xmm1, dword [rax + 0x18fc]
jmp 0x140005a1d
xorps xmm1, xmm1
movss dword [rdx + 0x18f8], xmm1
lea rsi, [rbx + 0x1cc8]
mov rax, qword [rcx + 0x58]
mov qword [rsp + 0x20], r15
movups xmm2, xmmword [rsp + 0x20]
movsd xmm0, qword [rax + 0x38]
mov qword [rdx + 0x1908], rcx
mov rcx, rsi
movsd qword [rdx + 0x1900], xmm0
movss dword [rdx + 0x1910], xmm1
movss xmm0, dword [rbx + 0x10]
movss xmm1, dword [rbx + 0x14]
mov eax, dword [rbx + 0x15ec]
shufps xmm2, xmm2, 0xd2
movss xmm2, xmm0
mov dword [rbx + 0x1914], eax
shufps xmm2, xmm2, 0x27
movss xmm2, xmm1
shufps xmm2, xmm2, 0x39
movups xmmword [rbx + 0x1918], xmm2
call fcn.14001a150
mov rax, qword [rbx + 0xa0]
mov r8d, dword [rsi + 0x74]
mov rbp, qword [rax + 8]
mov eax, dword [rsi + 0x70]
cmp eax, r8d
jne 0x140005ad3
lea ecx, [rax + 1]
test r8d, r8d
je 0x140005abb
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140005ac0
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rsi + 0x70]
call fcn.1400121e0
mov eax, dword [rsi + 0x70]
movsxd rcx, eax
mov rax, qword [rsi + 0x78]
mov qword [rax + rcx*8], rbp
mov rcx, rsi
inc dword [rsi + 0x70]
call fcn.14001a6b0
mov rax, qword [rsi + 0x38]
xor r9d, r9d
mov rcx, rsi
movss xmm1, dword [rax + 0x24]
movss xmm0, dword [rax + 0x20]
movss xmm2, dword [rax + 0x1c]
unpcklps xmm0, xmm1
movss xmm1, dword [rax + 0x18]
movq r8, xmm0
unpcklps xmm1, xmm2
movq rdx, xmm1
call fcn.14001a7a0
movzx eax, byte [rbx + 0x15e9]
mov rdx, qword [0x140086fb0]
neg al
mov eax, r15d
mov byte [rbx + 0x1c70], r15b
sbb ecx, ecx
mov qword [rbx + 0x1c78], r15
and ecx, r14d
mov qword [rbx + 0x1c84], r15
cmp byte [rbx + 0x15e8], r15b
mov dword [rbx + 0x1c80], r15d
setne al
or ecx, eax
mov dword [rbx + 0x1cf8], ecx
mov qword [rbx + 0x1c94], r15
mov qword [rbx + 0x1c8c], r15
cmp byte [rbx + 0x1d74], r15b
je 0x140005ba4
mov eax, dword [rbx + 0x1d94]
cmp eax, dword [rbx + 0x1a24]
jne 0x140005ba4
cmp dword [rdx + 0x1a24], eax
jne 0x140005b95
mov dword [rdx + 0x1a2c], eax
cmp dword [rdx + 0x1a28], eax
jne 0x140005ba4
mov byte [rdx + 0x1a37], 1
mov eax, dword [rbx + 0x1a10]
cmp dword [rbx + 0x1a18], r15d
jne 0x140005bbc
mov dword [rbx + 0x1a1c], r15d
jmp 0x140005bca
mov ecx, eax
test eax, eax
je 0x140005bd3
cmp dword [rbx + 0x1a24], eax
jne 0x140005bd3
mov dword [rbx + 0x1a20], r15d
mov ecx, eax
movss xmm2, dword [rbx + 0x18]
mov eax, dword [rbx + 0x1a24]
test ecx, ecx
je 0x140005c0c
movaps xmm0, xmm2
addss xmm0, dword [rbx + 0x1a1c]
movss dword [rbx + 0x1a1c], xmm0
cmp eax, ecx
je 0x140005c0c
movaps xmm0, xmm2
addss xmm0, dword [rbx + 0x1a20]
movss dword [rbx + 0x1a20], xmm0
movaps xmm1, xmm2
mov dword [rbx + 0x1a18], ecx
mov ecx, eax
mov dword [rbx + 0x1a10], r15d
mov byte [rbx + 0x1a14], r15b
cmp dword [rbx + 0x1a2c], eax
je 0x140005c83
cmp dword [rbx + 0x1a28], eax
jne 0x140005c83
test eax, eax
je 0x140005c83
mov ecx, dword [rdx + 0x1a24]
test ecx, ecx
setne al
mov byte [rdx + 0x1a34], al
test ecx, ecx
je 0x140005c5c
mov dword [rdx + 0x1a30], r15d
mov byte [rdx + 0x1a36], r15b
mov dword [rdx + 0x1a24], r15d
mov dword [rdx + 0x1a3c], r15d
mov byte [rdx + 0x1a35], r15b
mov qword [rdx + 0x1a48], r15
mov ecx, dword [rbx + 0x1a24]
movss xmm1, dword [rbx + 0x18]
test ecx, ecx
je 0x140005c9a
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x1a30]
movss dword [rbx + 0x1a30], xmm0
mov rax, qword [rbx + 0x1a48]
addss xmm1, dword [rbx + 0x1a60]
mov qword [rbx + 0x1a50], rax
movzx eax, byte [rbx + 0x1a36]
mov byte [rbx + 0x1a38], al
mov eax, dword [rbx + 0x2d48]
movss dword [rbx + 0x1a60], xmm1
mov dword [rbx + 0x1a28], ecx
mov dword [rbx + 0x1a2c], r15d
mov byte [rbx + 0x1a37], r15b
mov byte [rbx + 0x1a34], r15b
test eax, eax
je 0x140005cf5
cmp ecx, eax
je 0x140005cf5
mov dword [rbx + 0x2d48], r15d
mov eax, dword [rbx + 0x1de4]
lea rcx, [rbx + 0xca8]
lea rdx, [rbx + 0x4a8]
mov dword [rbx + 0x1de8], eax
mov r8d, 0x800
mov qword [rbx + 0x1de0], 0x7f7fffff
mov byte [rbx + 0x1d75], r15b
call sub.VCRUNTIME140.dll_memcpy
movss xmm1, dword [0x14007f41c]
lea rcx, [rbx + 0x135]
lea rax, [rbx + 0x4ac]
mov edx, 0x80
cmp byte [rcx - 1], r15b
je 0x140005d63
movss xmm0, dword [rax - 4]
comiss xmm6, xmm0
jbe 0x140005d5c
movaps xmm0, xmm6
jmp 0x140005d66
addss xmm0, dword [rbx + 0x18]
jmp 0x140005d66
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rcx], r15b
je 0x140005d85
movss xmm0, dword [rax]
comiss xmm6, xmm0
jbe 0x140005d7e
movaps xmm0, xmm6
jmp 0x140005d88
addss xmm0, dword [rbx + 0x18]
jmp 0x140005d88
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rcx + 1], r15b
je 0x140005da8
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jbe 0x140005da1
movaps xmm0, xmm6
jmp 0x140005dab
addss xmm0, dword [rbx + 0x18]
jmp 0x140005dab
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rcx + 2], r15b
je 0x140005dcc
movss xmm0, dword [rax + 8]
comiss xmm6, xmm0
jbe 0x140005dc5
movaps xmm0, xmm6
jmp 0x140005dcf
addss xmm0, dword [rbx + 0x18]
jmp 0x140005dcf
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rcx, 4
add rax, 0x10
sub rdx, 1
jne 0x140005d47
call fcn.14000e450
call fcn.140004d60
movsxd rax, dword [rbx + 0x2fd8]
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [rbx + rax*4 + 0x2df8]
addss xmm0, dword [rbx + 0x2fdc]
movss dword [rbx + 0x2fdc], xmm0
movss dword [rbx + rax*4 + 0x2df8], xmm1
mov eax, 0x88888889
mov ecx, dword [rbx + 0x2fd8]
movss xmm1, dword [rbx + 0x2fdc]
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 [rbx + 0x2fd8], ecx
jbe 0x140005e6a
divss xmm1, dword [0x14007f3d0]
movss xmm0, dword [0x14007f2e4]
divss xmm0, xmm1
jmp 0x140005e72
movss xmm0, dword [0x14007f410]
movss dword [rbx + 0x3b4], xmm0
call fcn.140004b50
call fcn.140005350
mov r10, qword [0x140086fb0]
movsxd rax, dword [r10 + 0x1aa8]
test eax, eax
jle 0x140005ecb
mov r8, qword [r10 + 0x1ab0]
lea rdx, [rax - 1]
lea rcx, [rdx + rdx*2]
add r8, 8
shl rcx, 4
add r8, rcx
mov rax, qword [r8]
test rax, rax
je 0x140005ec1
test dword [rax + 0xc], 0x8000000
jne 0x140005ee1
sub r8, 0x30
sub rdx, 1
jns 0x140005eb0
cmp qword [rbx + 0x1b80], r15
je 0x140005f00
movss xmm0, dword [rbx + 0x1b9c]
comiss xmm0, xmm6
jbe 0x140005f00
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x14007f378]
addss xmm1, dword [rbx + 0x1cc0]
minss xmm1, dword [0x14007f2e4]
jmp 0x140005f1d
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x14007f388]
movss xmm1, dword [rbx + 0x1cc0]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1cc0], xmm1
mov dword [rbx + 0x1d70], r15d
mov qword [rbx + 0x2fe4], 0xffffffffffffffff
mov dword [rbx + 0x2fe0], 0xffffffff
mov dword [rbx + 0x2d88], 0x3f800000
mov dword [rbx + 0x2d8c], 0x3f800000
call fcn.1400050e0
cmp dword [rbx + 0x1a24], r15d
jne 0x140005fd8
mov r9, qword [rbx + 0x1b40]
test r9, r9
je 0x140005fd8
cmp byte [r9 + 0x7a], r15b
je 0x140005fd8
test dword [r9 + 0xc], 0x40000
jne 0x140005fd8
cmp byte [rbx + 0x130], r15b
jne 0x140005fd8
mov ecx, dword [r10 + 0x3c]
test ecx, ecx
js 0x140005fd8
xor edx, edx
call fcn.1400073c0
test al, al
je 0x140005fd8
cmp dword [rbx + 0x1b48], edx
je 0x140005fc6
mov eax, dword [rbx + 0x1ba8]
cmp eax, 0x7fffffff
je 0x140005fc6
cmp byte [rbx + 0x131], dl
cmovne r14d, r15d
add r14d, eax
mov dword [r9 + 0x3b4], r14d
jmp 0x140005fd8
movzx eax, byte [rbx + 0x131]
neg al
sbb ecx, ecx
mov dword [r9 + 0x3b4], ecx
mov edx, r15d
mov dword [rbx + 0x1ba8], 0x7fffffff
cmp dword [rbx + 0x19a0], r15d
je 0x14000601a
mov r8, r15
mov rax, qword [rbx + 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], r15b
mov byte [rcx + 0x7c], r15b
cmp edx, dword [rbx + 0x19a0]
jne 0x140005ff1
mov rax, qword [rbx + 0x1b40]
test rax, rax
je 0x140006094
cmp byte [rax + 0x7b], r15b
jne 0x140006094
movsxd rax, dword [r10 + 0x19b0]
test eax, eax
jle 0x140006094
lea r9, [rax - 1]
mov rax, qword [r10 + 0x19b8]
lea r10, [rax + r9*8]
mov r8, qword [r10]
test r8, r8
je 0x140006072
cmp byte [r8 + 0x7b], r15b
je 0x140006072
mov eax, dword [r8 + 0xc]
and eax, 0x40200
cmp eax, 0x40200
setne cl
bt dword [r8 + 0xc], 0x18
setae al
test al, cl
jne 0x14000607e
sub r10, 8
sub r9, 1
jns 0x140006046
jmp 0x140006094
mov rax, qword [r8 + 0x370]
test rax, rax
cmovne r8, rax
mov rcx, r8
call fcn.14000c100
mov ecx, dword [rbx + 0x19d4]
test ecx, ecx
jns 0x1400060bb
mov eax, ecx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x19d0]
test eax, eax
cmovg edx, eax
call fcn.1400121e0
mov dword [rbx + 0x19d0], r15d
mov ecx, dword [rbx + 0x1abc]
test ecx, ecx
jns 0x1400060e9
mov eax, ecx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x1ab8]
test eax, eax
cmovg edx, eax
call fcn.1400125c0
mov dword [rbx + 0x1ab8], r15d
mov rcx, qword [rbx + 0x1b40]
call fcn.14000cdd0
mov rax, qword [0x140086fb0]
lea rcx, str.DebugDefault
xor r8d, r8d
xor edx, edx
mov dword [rax + 0x1af4], 0x43c80000
mov dword [rax + 0x1af8], 0x43c80000
mov dword [rax + 0x1acc], 4
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r15
pop r14
pop rdi
jmp fcn.140009210