Function at 0x180038e80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x101f0
call fcn.18004a9f0
sub rsp, rax
movaps xmmword [rsp + 0x101e0], xmm6
movaps xmmword [rsp + 0x101d0], xmm7
movaps xmmword [rsp + 0x101c0], xmm8
movaps xmmword [rsp + 0x101b0], xmm9
movaps xmmword [rsp + 0x101a0], xmm10
movaps xmmword [rsp + 0x10190], xmm11
movaps xmmword [rsp + 0x10180], xmm12
movaps xmmword [rsp + 0x10170], xmm13
movaps xmmword [rsp + 0x10160], xmm14
mov rax, qword [0x180067d80]
xor rax, rsp
mov qword [rsp + 0x10150], rax
mov qword [rsp + 0x50], rcx
xor r14d, r14d
mov qword [rsp + 0x28], r14
lea r8, [0x18004fe74]
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
jne 0x180038f31
xor al, al
jmp 0x18003992f
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbx, eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
lea rcx, [rbx + 1]
call fcn.18004a560
mov rdi, rax
mov qword [rsp + 0x58], rax
mov byte [rax + rbx], r14b
mov r9, qword [rsp + 0x28]
mov r8, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
sete sil
mov byte [rsp + 0x20], sil
jne 0x180039911
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xe0], r14
mov dword [rsp + 0xe8], r14d
mov qword [rsp + 0x10138], r14
mov qword [rsp + 0x10140], r14
lea rax, [rsp + 0x138]
mov qword [rsp + 0x120], rax
lea rax, [rsp + 0x138]
neg rax
and eax, 7
lea r8, [rsp + 0x138]
add rax, r8
mov qword [rsp + 0x128], rax
lea rax, [rsp + 0x10138]
mov qword [rsp + 0x130], rax
mov r8, rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0x100], r14
cmp byte [rdi], 0xef
jne 0x180039032
cmp byte [rdi + 1], 0xbb
jne 0x180039032
cmp byte [rdi + 2], 0xbf
jne 0x180039032
lea r8, [rdi + 3]
mov qword [rsp + 0x30], r8
lea rbx, [0x18004ff30]
nop dword [rax]
movzx eax, byte [r8]
cmp byte [rax + rbx], 0
je 0x18003905d
nop word [rax + rax]
inc r8
movzx eax, byte [r8]
cmp byte [rax + rbx], 0
jne 0x180039050
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
jne 0x180039884
lea r11, str.mirvInput
mov r8, r11
nop dword [rax + rax]
inc r8
cmp byte [r8], 0
jne 0x180039080
sub r8, r11
mov rdx, qword [rsp + 0xf0]
test rdx, rdx
je 0x180039853
lea r15, [0x18006a258]
mov rcx, qword [rdx]
test rcx, rcx
je 0x1800390b2
mov rax, qword [rdx + 0x10]
jmp 0x1800390b8
mov rax, r14
mov rcx, r15
cmp rax, r8
jne 0x180039875
lea r10, [rcx + rax]
cmp rcx, r10
jae 0x1800390e5
mov r9, r11
sub r9, rcx
movzx eax, byte [rcx + r9]
cmp byte [rcx], al
jne 0x180039875
inc rcx
cmp rcx, r10
jb 0x1800390d0
lea r11, str.states
mov r9, r11
nop
inc r9
cmp byte [r9], 0
jne 0x1800390f0
sub r9, r11
mov r8, qword [rdx + 0x30]
test r8, r8
je 0x180039853
nop dword [rax]
mov rcx, qword [r8]
test rcx, rcx
je 0x18003911e
mov rax, qword [r8 + 0x10]
jmp 0x180039124
mov rax, r14
mov rcx, r15
cmp rax, r9
jne 0x180039866
lea r10, [rax + rcx]
cmp rcx, r10
jae 0x180039154
mov rdx, r11
sub rdx, rcx
nop dword [rax]
movzx eax, byte [rdx + rcx]
cmp byte [rcx], al
jne 0x180039866
inc rcx
cmp rcx, r10
jb 0x180039140
lea r10, [0x1800534b0]
mov rdx, r10
nop
inc rdx
cmp byte [rdx], 0
jne 0x180039160
sub rdx, r10
mov rsi, qword [r8 + 0x30]
test rsi, rsi
je 0x1800391bc
mov rcx, qword [rsi]
test rcx, rcx
je 0x180039182
mov rax, qword [rsi + 0x10]
jmp 0x180039187
xor eax, eax
mov rcx, r15
cmp rax, rdx
jne 0x1800391b3
lea r9, [rax + rcx]
cmp rcx, r9
jae 0x1800391be
mov r8, r10
sub r8, rcx
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
cmp byte [rcx], al
jne 0x1800391b3
inc rcx
cmp rcx, r9
jb 0x1800391a0
jmp 0x1800391be
mov rsi, qword [rsi + 0x58]
test rsi, rsi
jne 0x180039174
xor esi, esi
lea r11, [0x18004fe38]
lea rbx, [0x18004fe3c]
lea rdi, [0x18004fe40]
lea r14, [0x18004fe48]
xorps xmm13, xmm13
movsd xmm14, qword [0x1800509e0]
lea rdx, str.name
test rsi, rsi
je 0x18003984e
mov r9, rdx
nop word [rax + rax]
inc r9
cmp byte [r9], 0
jne 0x180039200
sub r9, rdx
mov r13, qword [rsi + 0x40]
mov r10, r13
mov qword [rsp + 0x30], r13
test r13, r13
je 0x1800397c1
mov rcx, qword [r10]
test rcx, rcx
je 0x18003922f
mov rax, qword [r10 + 0x10]
jmp 0x180039234
xor eax, eax
mov rcx, r15
cmp rax, r9
jne 0x1800397fa
lea r8, [rax + rcx]
cmp rcx, r8
jae 0x180039264
sub rdx, rcx
nop dword [rax]
movzx eax, byte [rdx + rcx]
cmp byte [rcx], al
jne 0x1800397f3
inc rcx
cmp rcx, r8
jb 0x180039250
mov rdx, r11
inc rdx
cmp byte [rdx], 0
jne 0x180039267
sub rdx, r11
mov r10, r13
mov rcx, qword [r10]
test rcx, rcx
je 0x180039283
mov rax, qword [r10 + 0x10]
jmp 0x180039288
xor eax, eax
mov rcx, r15
cmp rax, rdx
jne 0x1800392b3
lea r9, [rax + rcx]
cmp rcx, r9
jae 0x1800392bc
mov r8, r11
sub r8, rcx
nop dword [rax]
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x1800392b3
inc rcx
cmp rcx, r9
jb 0x1800392a0
jmp 0x1800392bc
mov r10, qword [r10 + 0x30]
test r10, r10
jne 0x180039275
mov rdx, rbx
nop
inc rdx
cmp byte [rdx], 0
jne 0x1800392c0
sub rdx, rbx
mov r12, r13
nop
mov rcx, qword [r12]
test rcx, rcx
je 0x1800392e0
mov rax, qword [r12 + 0x10]
jmp 0x1800392e5
xor eax, eax
mov rcx, r15
cmp rax, rdx
jne 0x180039313
lea r9, [rax + rcx]
cmp rcx, r9
jae 0x18003931d
mov r8, rbx
sub r8, rcx
nop dword [rax]
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x180039313
inc rcx
cmp rcx, r9
jb 0x180039300
jmp 0x18003931d
mov r12, qword [r12 + 0x30]
test r12, r12
jne 0x1800392d0
mov rdx, rdi
inc rdx
cmp byte [rdx], 0
jne 0x180039320
sub rdx, rdi
mov r15, r13
nop
mov rcx, qword [r15]
lea r11, [0x18006a258]
test rcx, rcx
je 0x180039345
mov rax, qword [r15 + 0x10]
jmp 0x18003934a
xor eax, eax
mov rcx, r11
cmp rax, rdx
jne 0x180039373
lea r9, [rax + rcx]
cmp rcx, r9
jae 0x18003937c
mov r8, rdi
sub r8, rcx
nop
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x180039373
inc rcx
cmp rcx, r9
jb 0x180039360
jmp 0x18003937c
mov r15, qword [r15 + 0x30]
test r15, r15
jne 0x180039330
mov rdx, r14
nop
inc rdx
cmp byte [rdx], 0
jne 0x180039380
sub rdx, r14
mov r14, r13
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x18003939e
mov rax, qword [r14 + 0x10]
jmp 0x1800393a3
xor eax, eax
mov rcx, r11
cmp rax, rdx
jne 0x1800393d3
lea r9, [rcx + rax]
cmp rcx, r9
jae 0x1800393dc
lea r8, [0x18004fe48]
sub r8, rcx
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x1800393d3
inc rcx
cmp rcx, r9
jb 0x1800393c0
jmp 0x1800393dc
mov r14, qword [r14 + 0x30]
test r14, r14
jne 0x180039390
lea rbx, [0x18004fe4c]
mov rdx, rbx
inc rdx
cmp byte [rdx], 0
jne 0x1800393e6
sub rdx, rbx
mov rdi, r13
mov rcx, qword [rdi]
test rcx, rcx
je 0x180039402
mov rax, qword [rdi + 0x10]
jmp 0x180039407
xor eax, eax
mov rcx, r11
cmp rax, rdx
jne 0x180039433
lea r9, [rax + rcx]
cmp rcx, r9
jae 0x18003943c
mov r8, rbx
sub r8, rcx
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x180039433
inc rcx
cmp rcx, r9
jb 0x180039420
jmp 0x18003943c
mov rdi, qword [rdi + 0x30]
test rdi, rdi
jne 0x1800393f4
lea rax, [0x18004fe50]
mov rdx, rax
inc rdx
cmp byte [rdx], 0
jne 0x180039446
sub rdx, rax
mov rbx, r13
mov rcx, qword [rbx]
test rcx, rcx
je 0x180039462
mov rax, qword [rbx + 0x10]
jmp 0x180039467
xor eax, eax
mov rcx, r11
cmp rax, rdx
jne 0x180039493
lea r9, [rax + rcx]
cmp rcx, r9
jae 0x18003949c
lea r8, [0x18004fe50]
sub r8, rcx
nop
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x180039493
inc rcx
cmp rcx, r9
jb 0x180039480
jmp 0x18003949c
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x180039454
lea rax, [0x18004fe44]
mov rdx, rax
inc rdx
cmp byte [rdx], 0
jne 0x1800394a6
sub rdx, rax
mov rcx, qword [r13]
test rcx, rcx
je 0x1800394c0
mov rax, qword [r13 + 0x10]
jmp 0x1800394c5
xor eax, eax
mov rcx, r11
cmp rax, rdx
jne 0x1800394f3
lea r9, [rcx + rax]
cmp rcx, r9
jae 0x1800394fc
lea r8, [0x18004fe44]
sub r8, rcx
nop dword [rax]
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x1800394f3
inc rcx
cmp rcx, r9
jb 0x1800394e0
jmp 0x1800394fc
mov r13, qword [r13 + 0x30]
test r13, r13
jne 0x1800394b1
test r10, r10
je 0x18003951b
mov rax, qword [r10 + 8]
mov rcx, r11
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm12, xmm0
jmp 0x18003951f
movaps xmm12, xmm13
test r12, r12
je 0x180039543
mov rax, qword [r12 + 8]
lea rcx, [0x18006a258]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm11, xmm0
jmp 0x180039547
movaps xmm11, xmm13
test r15, r15
je 0x18003956d
mov rax, qword [r15 + 8]
lea r15, [0x18006a258]
mov rcx, r15
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm10, xmm0
jmp 0x180039578
movaps xmm10, xmm13
lea r15, [0x18006a258]
test r14, r14
je 0x180039597
mov rax, qword [r14 + 8]
mov rcx, r15
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm9, xmm0
jmp 0x18003959b
movaps xmm9, xmm13
test rdi, rdi
je 0x1800395ba
mov rax, qword [rdi + 8]
mov rcx, r15
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm8, xmm0
jmp 0x1800395be
movaps xmm8, xmm13
test rbx, rbx
je 0x1800395dc
mov rax, qword [rbx + 8]
mov rcx, r15
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm7, xmm0
jmp 0x1800395e0
movaps xmm7, xmm13
test r13, r13
je 0x1800395fe
mov rax, qword [r13 + 8]
mov rcx, r15
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm6, xmm0
jmp 0x180039602
movaps xmm6, xmm14
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
mov rdx, r15
test rax, rax
cmovne rdx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
xor r14d, r14d
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xb0], r14
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x180039640
lea rcx, [rsp + 0x98]
call fcn.180007b20
nop
mov rdi, qword [rsp + 0x50]
add rdi, 8
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180036ab0
mov rbx, qword [rsp + 0x40]
cmp byte [rbx + 0x19], 0
jne 0x18003969c
lea r8, [rbx + 0x20]
lea rdx, [rsp + 0x98]
mov rcx, rdi
call fcn.1800370a0
test al, al
je 0x180039737
movabs rax, 0x222222222222222
cmp qword [rdi + 8], rax
je 0x18003998c
mov rbx, qword [rdi]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r14
mov ecx, 0x78
call fcn.18004a46c
nop
mov qword [rax + 0x30], r14
mov qword [rax + 0x38], r14
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rsp + 0xa8]
movups xmmword [rax + 0x30], xmm1
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xb0], 0xf
mov byte [rsp + 0x98], 0
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rsp + 0x68], r14
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1800115e0
mov rbx, rax
movsd qword [rbx + 0x40], xmm12
movsd qword [rbx + 0x48], xmm11
movsd qword [rbx + 0x50], xmm10
movsd qword [rbx + 0x58], xmm8
movsd qword [rbx + 0x60], xmm9
movsd qword [rbx + 0x68], xmm7
movsd qword [rbx + 0x70], xmm6
mov rdx, qword [rsp + 0xb0]
cmp rdx, 0xf
jbe 0x1800397a5
inc rdx
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800397a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800397a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004a4a8
lea r14, [0x18004fe48]
lea rdi, [0x18004fe40]
lea rbx, [0x18004fe3c]
lea r11, [0x18004fe38]
lea r10, [0x1800534b0]
mov r9, r10
nop dword [rax + rax]
inc r9
cmp byte [r9], 0
jne 0x1800397d0
sub r9, r10
mov rsi, qword [rsi + 0x58]
test rsi, rsi
je 0x18003984e
mov rcx, qword [rsi]
test rcx, rcx
je 0x18003980e
mov rax, qword [rsi + 0x10]
jmp 0x180039813
lea rdx, str.name
mov r10, qword [r10 + 0x30]
mov qword [rsp + 0x30], r10
test r10, r10
jne 0x180039221
jmp 0x1800397c1
xor eax, eax
mov rcx, r15
cmp rax, r9
jne 0x180039845
lea r8, [rax + rcx]
cmp rcx, r8
jae 0x1800391e7
mov rdx, r10
sub rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
cmp byte [rcx], al
jne 0x180039845
inc rcx
cmp rcx, r8
jb 0x180039830
jmp 0x1800391e7
mov rsi, qword [rsi + 0x58]
test rsi, rsi
jne 0x1800397e5
movzx esi, byte [rsp + 0x20]
lea rcx, [rsp + 0x120]
call fcn.18001a800
nop
jmp 0x180039911
mov r8, qword [r8 + 0x58]
test r8, r8
jne 0x180039110
jmp 0x180039853
mov rdx, qword [rdx + 0x58]
test rdx, rdx
jne 0x1800390a4
jmp 0x180039853
cmp al, 0x3c
jne 0x180039992
lea rax, [r8 + 1]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xc0]
call fcn.180016700
mov rcx, rax
test rax, rax
jne 0x1800398b9
mov r8, qword [rsp + 0x30]
jmp 0x180039040
cmp qword [rsp + 0xf0], 0
je 0x1800398de
mov rax, qword [rsp + 0xf8]
mov qword [rcx + 0x50], rax
mov rax, qword [rsp + 0xf8]
mov qword [rax + 0x58], rcx
jmp 0x1800398ea
mov qword [rax + 0x50], r14
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xf8], rcx
lea rax, [rsp + 0xc0]
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x58], r14
mov r8, qword [rsp + 0x30]
jmp 0x180039040
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.18004a4a8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movzx eax, sil
mov rcx, qword [rsp + 0x10150]
xor rcx, rsp
call fcn.18004a540
lea r11, [rsp + 0x101f0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.180011860
nop
lea rdx, [0x18004ff18]
lea rcx, [rsp + 0x70]
call fcn.18001a760
lea rdx, [0x180062b70]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3