Function at 0x180037e10
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, 0x50
mov rbx, qword [0x18008d3f8]
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
test rbx, rbx
jne 0x180037e5f
mov r8d, 0xc4e
lea rdx, [0x18007a620]
lea rcx, [0x18007a7a0]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rbx, qword [0x18008d3f8]
cmp byte [rbx], 0
jne 0x180037e7e
mov r8d, 0xc57
lea rdx, [0x18007a620]
lea rcx, [0x18007a8d0]
call qword [sym.imp.ucrtbase.dll__wassert]
movss xmm0, dword [rbx + 0x18]
xorps xmm6, xmm6
comiss xmm0, xmm6
jae 0x180037ea5
mov r8d, 0xc58
lea rdx, [0x18007a620]
lea rcx, [0x18007a8f0]
call qword [sym.imp.ucrtbase.dll__wassert]
movss xmm0, dword [rbx + 0x10]
comiss xmm0, xmm6
jb 0x180037eb9
movss xmm0, dword [rbx + 0x14]
comiss xmm0, xmm6
jae 0x180037ed3
mov r8d, 0xc59
lea rdx, [0x18007a620]
lea rcx, [0x18007a9d0]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rbx + 0xa0]
cmp dword [rax + 0x40], 0
jg 0x180037efa
mov r8d, 0xc5a
lea rdx, [0x18007a620]
lea rcx, [0x18007aa80]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rdi, qword [rbx + 0xa0]
cmp dword [rdi + 0x40], 0
jg 0x180037f21
mov r8d, 0x5bf
lea rdx, [0x18007a560]
lea rcx, [0x18007cce8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rdi + 0x48]
mov rcx, qword [rax]
cmp qword [rcx + 0x58], 0
jne 0x180037f49
mov r8d, 0xc5b
lea rdx, [0x18007a620]
lea rcx, [0x18007ab80]
call qword [sym.imp.ucrtbase.dll__wassert]
movss xmm0, dword [rbx + 0x1604]
comiss xmm0, xmm6
ja 0x180037f70
mov r8d, 0xc5c
lea rdx, [0x18007a620]
lea rcx, [0x18007ac90]
call qword [sym.imp.ucrtbase.dll__wassert]
movss xmm0, dword [rbx + 0x1568]
comiss xmm0, xmm6
movss xmm7, dword [0x18007f6cc]
jb 0x180037f8a
comiss xmm7, xmm0
jae 0x180037fa4
mov r8d, 0xc5d
lea rdx, [0x18007a620]
lea rcx, [0x18007ad10]
call qword [sym.imp.ucrtbase.dll__wassert]
mov eax, dword [rbx + 0x19a8]
test eax, eax
je 0x180037fd0
cmp dword [rbx + 0x19ac], eax
je 0x180037fd0
mov r8d, 0xc5e
lea rdx, [0x18007a620]
lea rcx, [0x18007ae50]
call qword [sym.imp.ucrtbase.dll__wassert]
lea rdi, [rbx + 0x3c]
mov esi, 0x15
nop dword [rax]
mov eax, dword [rdi]
inc eax
cmp eax, 0x200
jbe 0x180038005
mov r8d, 0xc60
lea rdx, [0x18007a620]
lea rcx, [0x18007af60]
call qword [sym.imp.ucrtbase.dll__wassert]
add rdi, 4
sub rsi, 1
jne 0x180037fe0
test byte [rbx + 8], 1
je 0x180038035
cmp dword [rbx + 0x6c], 0xffffffff
jne 0x180038035
mov r8d, 0xc64
lea rdx, [0x18007a620]
lea rcx, [0x18007b0e0]
call qword [sym.imp.ucrtbase.dll__wassert]
cmp byte [rbx + 0xd3], 0
je 0x18003804b
test byte [rbx + 0xc], 2
jne 0x18003804b
mov byte [rbx + 0xd3], 0
cmp byte [rbx + 0x2db0], 0
mov r14d, 2
jne 0x18003816b
cmp dword [rbx + 0x2dd8], 0
je 0x180038081
mov r8d, 0xc6d
lea rdx, [0x18007a620]
lea rcx, [0x18007b1b0]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x180038164
lea rdx, [0x18007cb88]
call fcn.180033fa0
mov rdi, rax
test rax, rax
je 0x180038164
mov r8d, r14d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ucrtbase.dll_fseek]
test eax, eax
jne 0x18003815b
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x18003815b
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_fseek]
test eax, eax
jne 0x18003815b
mov rax, qword [0x18008d3f8]
mov rbp, rsi
test rax, rax
je 0x1800380f8
inc dword [rax + 0x3e0]
mov rcx, rbp
call qword [sym.imp.ucrtbase.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18003815b
mov r9, rdi
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.ucrtbase.dll_fread]
mov rcx, rdi
cmp rax, rbp
je 0x18003812d
call qword [sym.imp.ucrtbase.dll_fclose]
jmp 0x18003813e
call qword [sym.imp.ucrtbase.dll_fclose]
mov rdx, rbp
mov rcx, rsi
call fcn.180045a80
mov rax, qword [0x18008d3f8]
test rax, rax
je 0x180038150
dec dword [rax + 0x3e0]
mov rcx, rsi
call qword [sym.imp.ucrtbase.dll_free]
jmp 0x180038164
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_fclose]
mov byte [rbx + 0x2db0], 1
movss xmm0, dword [rbx + 0x2db4]
xor r15d, r15d
comiss xmm0, xmm6
jbe 0x1800381ab
subss xmm0, dword [rbx + 0x18]
comiss xmm6, xmm0
movss dword [rbx + 0x2db4], xmm0
jb 0x1800381ab
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18003819d
call fcn.180045d40
jmp 0x1800381a4
mov byte [rbx + 0x3c8], 1
mov dword [rbx + 0x2db4], r15d
inc dword [rbx + 0x19a8]
movss xmm0, dword [rbx + 0x18]
mov rax, qword [rbx + 0xa0]
mov rdi, qword [0x18008d3f8]
mov byte [rbx + 1], 1
mov dword [rbx + 0x2d8c], r15d
mov dword [rbx + 0x1a08], r15d
cvtps2pd xmm0, xmm0
addsd xmm0, qword [rbx + 0x19a0]
movsd qword [rbx + 0x19a0], xmm0
mov byte [rax], 1
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
jne 0x180038226
mov rdi, qword [rdi + 0xa0]
cmp dword [rdi + 0x40], r15d
jg 0x18003821f
mov r8d, 0x5bf
lea rdx, [0x18007a560]
lea rcx, [0x18007cce8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rdi + 0x48]
mov rcx, qword [rax]
call fcn.18003f0b0
mov rax, qword [rbx + 0x1908]
cmp qword [rax + 0x58], r15
jne 0x180038252
mov r8d, 0xc8a
lea rdx, [0x18007a620]
lea rcx, [0x18007b1e8]
call qword [sym.imp.ucrtbase.dll__wassert]
movss xmm0, dword [rbx + 0x10]
lea rsi, [rbx + 0x1ce0]
movss xmm1, dword [rbx + 0x14]
mov rcx, rsi
mov eax, dword [rbx + 0x1604]
mov qword [rsp + 0x20], r15
movups xmm2, xmmword [rsp + 0x20]
mov dword [rbx + 0x192c], eax
shufps xmm2, xmm2, 0xd2
movss xmm2, xmm0
shufps xmm2, xmm2, 0x27
movss xmm2, xmm1
shufps xmm2, xmm2, 0x39
movups xmmword [rbx + 0x1930], xmm2
call fcn.18004f1f0
mov rax, qword [rbx + 0xa0]
mov r8d, dword [rsi + 0x74]
mov ecx, dword [rsi + 0x70]
mov rbp, qword [rax + 8]
cmp ecx, r8d
jne 0x1800382dc
inc ecx
test r8d, r8d
je 0x1800382c7
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x1800382cc
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rsi + 0x70]
call fcn.180046bd0
movsxd rdx, dword [rsi + 0x70]
mov rcx, rsi
mov rax, qword [rsi + 0x78]
mov qword [rax + rdx*8], rbp
inc dword [rsi + 0x70]
call fcn.18004f770
mov rcx, rsi
call fcn.18004f9e0
movzx eax, byte [rbx + 0x1601]
mov rdx, qword [0x18008d3f8]
neg al
mov eax, r15d
mov byte [rbx + 0x1c88], r15b
sbb ecx, ecx
mov qword [rbx + 0x1c90], r15
and ecx, r14d
mov qword [rbx + 0x1c9c], r15
cmp byte [rbx + 0x1600], r15b
mov dword [rbx + 0x1c98], r15d
setne al
or ecx, eax
mov dword [rbx + 0x1d10], ecx
mov qword [rbx + 0x1cac], r15
mov qword [rbx + 0x1ca4], r15
cmp byte [rbx + 0x1d8c], r15b
je 0x180038383
mov eax, dword [rbx + 0x1dac]
cmp eax, dword [rbx + 0x1a3c]
jne 0x180038383
cmp dword [rdx + 0x1a3c], eax
jne 0x180038374
mov dword [rdx + 0x1a44], eax
cmp dword [rdx + 0x1a40], eax
jne 0x180038383
mov byte [rdx + 0x1a4f], 1
lea rax, [rbx + 0x1a28]
mov ecx, dword [rax]
cmp dword [rbx + 0x1a30], r15d
jne 0x18003839e
mov dword [rbx + 0x1a34], r15d
jmp 0x1800383b0
mov r8d, ecx
mov r9, rax
test ecx, ecx
je 0x1800383bd
cmp dword [rbx + 0x1a3c], ecx
jne 0x1800383bd
mov dword [rbx + 0x1a38], r15d
mov r8d, ecx
mov r9, rax
movss xmm1, dword [rbx + 0x18]
test r8d, r8d
je 0x1800383f6
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x1a34]
movss dword [rbx + 0x1a34], xmm0
cmp dword [rbx + 0x1a3c], r8d
je 0x1800383f6
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x1a38]
movss dword [rbx + 0x1a38], xmm0
mov eax, dword [rbx + 0x1a3c]
movaps xmm2, xmm1
mov dword [rbx + 0x1a30], r8d
mov dword [r9], r15d
mov byte [rbx + 0x1a2c], r15b
cmp dword [rbx + 0x1a44], eax
je 0x180038468
cmp dword [rbx + 0x1a40], eax
jne 0x180038468
test eax, eax
je 0x180038468
mov ecx, dword [rdx + 0x1a3c]
test ecx, ecx
setne al
mov byte [rdx + 0x1a4c], al
test ecx, ecx
je 0x180038447
mov dword [rdx + 0x1a48], r15d
mov byte [rdx + 0x1a4e], r15b
mov dword [rdx + 0x1a3c], r15d
mov dword [rdx + 0x1a54], r15d
mov byte [rdx + 0x1a4d], r15b
mov qword [rdx + 0x1a60], r15
movss xmm2, dword [rbx + 0x18]
mov ecx, dword [rbx + 0x1a3c]
test ecx, ecx
je 0x180038485
movaps xmm0, xmm2
addss xmm0, dword [rbx + 0x1a48]
movss dword [rbx + 0x1a48], xmm0
mov rax, qword [rbx + 0x1a60]
addss xmm2, dword [rbx + 0x1a78]
mov qword [rbx + 0x1a68], rax
movzx eax, byte [rbx + 0x1a4e]
mov byte [rbx + 0x1a50], al
mov eax, dword [rbx + 0x2d60]
movss dword [rbx + 0x1a78], xmm2
mov dword [rbx + 0x1a40], ecx
mov dword [rbx + 0x1a44], r15d
mov byte [rbx + 0x1a4f], r15b
mov byte [rbx + 0x1a4c], r15b
test eax, eax
je 0x1800384e0
cmp ecx, eax
je 0x1800384e0
mov dword [rbx + 0x2d60], r15d
mov eax, dword [rbx + 0x1dfc]
lea rcx, [rbx + 0xcc0]
lea rdx, [rbx + 0x4c0]
mov dword [rbx + 0x1e00], eax
mov r8d, 0x800
mov qword [rbx + 0x1df8], 0x7f7fffff
mov byte [rbx + 0x1d8d], r15b
call sub.VCRUNTIME140.dll_memcpy_1
movss xmm1, dword [0x18007f840]
lea rdx, [rbx + 0x14d]
lea rax, [rbx + 0x4c4]
mov r8d, 0x80
cmp byte [rdx - 1], r15b
je 0x18003854f
movss xmm0, dword [rax - 4]
comiss xmm6, xmm0
jbe 0x180038548
movaps xmm0, xmm6
jmp 0x180038552
addss xmm0, dword [rbx + 0x18]
jmp 0x180038552
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rdx], r15b
je 0x180038571
movss xmm0, dword [rax]
comiss xmm6, xmm0
jbe 0x18003856a
movaps xmm0, xmm6
jmp 0x180038574
addss xmm0, dword [rbx + 0x18]
jmp 0x180038574
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rdx + 1], r15b
je 0x180038594
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jbe 0x18003858d
movaps xmm0, xmm6
jmp 0x180038597
addss xmm0, dword [rbx + 0x18]
jmp 0x180038597
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rdx + 2], r15b
je 0x1800385b8
movss xmm0, dword [rax + 8]
comiss xmm6, xmm0
jbe 0x1800385b1
movaps xmm0, xmm6
jmp 0x1800385bb
addss xmm0, dword [rbx + 0x18]
jmp 0x1800385bb
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rdx, 4
add rax, 0x10
sub r8, 1
jne 0x180038533
call fcn.1800426c0
call fcn.180037310
movsxd rax, dword [rbx + 0x2ff0]
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [rbx + rax*4 + 0x2e10]
addss xmm0, dword [rbx + 0x2ff4]
movss dword [rbx + 0x2ff4], xmm0
movss dword [rbx + rax*4 + 0x2e10], xmm1
mov eax, 0x88888889
mov ecx, dword [rbx + 0x2ff0]
movss xmm1, dword [rbx + 0x2ff4]
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 + 0x2ff0], ecx
jbe 0x180038651
divss xmm1, dword [0x18007f7d4]
movaps xmm0, xmm7
divss xmm0, xmm1
jmp 0x180038659
movss xmm0, dword [0x18007f824]
movss dword [rbx + 0x3cc], xmm0
call fcn.180037120
call fcn.180037910
mov r10, qword [0x18008d3f8]
mov eax, dword [r10 + 0x1ac0]
sub eax, 1
js 0x1800386b2
movsxd rdx, eax
mov rax, qword [r10 + 0x1ac8]
add rax, 8
lea r8, [rdx + rdx*2]
shl r8, 4
add r8, rax
mov rax, qword [r8]
test rax, rax
je 0x1800386a8
test dword [rax + 0xc], 0x8000000
jne 0x1800386c8
sub r8, 0x30
sub rdx, 1
jns 0x180038697
cmp qword [rbx + 0x1b98], r15
je 0x1800386e3
movss xmm0, dword [rbx + 0x1bb4]
comiss xmm0, xmm6
jbe 0x1800386e3
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x18007f77c]
addss xmm1, dword [rbx + 0x1cd8]
minss xmm1, xmm7
jmp 0x180038700
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x18007f790]
movss xmm1, dword [rbx + 0x1cd8]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1cd8], xmm1
mov dword [rbx + 0x1d88], r15d
mov qword [rbx + 0x2ffc], 0xffffffffffffffff
mov dword [rbx + 0x2ff8], 0xffffffff
mov dword [rbx + 0x2da0], 0x3f800000
mov dword [rbx + 0x2da4], 0x3f800000
call fcn.1800376a0
cmp dword [rbx + 0x1a3c], r15d
jne 0x1800387c2
mov rax, qword [rbx + 0x1b58]
test rax, rax
je 0x1800387c2
cmp byte [rax + 0x7a], r15b
je 0x1800387c2
test dword [rax + 0xc], 0x40000
jne 0x1800387c2
cmp byte [rbx + 0x148], r15b
jne 0x1800387c2
mov ecx, dword [r10 + 0x3c]
test ecx, ecx
js 0x1800387c2
xor edx, edx
call fcn.180039ac0
mov rdx, qword [rbx + 0x1b58]
test al, al
je 0x1800387c2
cmp dword [rbx + 0x1b60], r15d
je 0x1800387b1
mov eax, dword [rbx + 0x1bc0]
cmp eax, 0x7fffffff
je 0x1800387b1
cmp byte [rbx + 0x149], r15b
cmovne r14d, r15d
add r14d, eax
mov dword [rdx + 0x3b4], r14d
jmp 0x1800387c2
movzx eax, byte [rbx + 0x149]
neg al
sbb ecx, ecx
mov dword [rdx + 0x3b4], ecx
mov eax, dword [rbx + 0x19b8]
mov dword [rbx + 0x1bc0], 0x7fffffff
cmp dword [rbx + 0x19c8], eax
je 0x1800387f4
mov r8d, 0xce7
lea rdx, [0x18007a620]
lea rcx, [0x18007b210]
call qword [sym.imp.ucrtbase.dll__wassert]
mov eax, dword [rbx + 0x19b8]
mov edi, r15d
test eax, eax
je 0x18003884d
mov rsi, r15
cmp r15d, eax
jl 0x180038823
mov r8d, 0x5bf
lea rdx, [0x18007a560]
lea rcx, [0x18007cce8]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rbx + 0x19c0]
inc edi
mov rcx, qword [rsi + rax]
add rsi, 8
movzx eax, byte [rcx + 0x7a]
mov byte [rcx + 0x7b], al
mov byte [rcx + 0x7a], r15b
mov byte [rcx + 0x7c], r15b
mov eax, dword [rbx + 0x19b8]
cmp edi, eax
jne 0x180038807
mov rax, qword [rbx + 0x1b58]
test rax, rax
je 0x180038864
cmp byte [rax + 0x7b], r15b
jne 0x180038864
call fcn.18003ee90
mov ecx, dword [rbx + 0x19ec]
test ecx, ecx
jns 0x18003888b
mov eax, ecx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x19e8]
test eax, eax
cmovg edx, eax
call fcn.180046bd0
lea rcx, [rbx + 0x1ad0]
mov dword [rbx + 0x19e8], r15d
xor edx, edx
call fcn.1800466a0
mov rcx, qword [rbx + 0x1b58]
call fcn.180040910
movss xmm1, dword [0x18007f7f0]
lea rcx, [0x18007b268]
mov rax, qword [0x18008d3f8]
movaps xmm0, xmm1
unpcklps xmm0, xmm1
xor r8d, r8d
xor edx, edx
movsd qword [rax + 0x1b0c], xmm0
mov dword [rax + 0x1ae4], 4
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop r15
pop r14
pop rdi
jmp fcn.18003b8b0