Function at 0x180038e50
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.18004aa60
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 0x180038f01
xor al, al
jmp 0x1800398ff
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.18004a5d0
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 0x1800398e1
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 0x180039002
cmp byte [rdi + 1], 0xbb
jne 0x180039002
cmp byte [rdi + 2], 0xbf
jne 0x180039002
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 0x18003902d
nop word [rax + rax]
inc r8
movzx eax, byte [r8]
cmp byte [rax + rbx], 0
jne 0x180039020
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
jne 0x180039854
lea r11, str.mirvInput
mov r8, r11
nop dword [rax + rax]
inc r8
cmp byte [r8], 0
jne 0x180039050
sub r8, r11
mov rdx, qword [rsp + 0xf0]
test rdx, rdx
je 0x180039823
lea r15, [0x18006a298]
mov rcx, qword [rdx]
test rcx, rcx
je 0x180039082
mov rax, qword [rdx + 0x10]
jmp 0x180039088
mov rax, r14
mov rcx, r15
cmp rax, r8
jne 0x180039845
lea r10, [rcx + rax]
cmp rcx, r10
jae 0x1800390b5
mov r9, r11
sub r9, rcx
movzx eax, byte [rcx + r9]
cmp byte [rcx], al
jne 0x180039845
inc rcx
cmp rcx, r10
jb 0x1800390a0
lea r11, str.states
mov r9, r11
nop
inc r9
cmp byte [r9], 0
jne 0x1800390c0
sub r9, r11
mov r8, qword [rdx + 0x30]
test r8, r8
je 0x180039823
nop dword [rax]
mov rcx, qword [r8]
test rcx, rcx
je 0x1800390ee
mov rax, qword [r8 + 0x10]
jmp 0x1800390f4
mov rax, r14
mov rcx, r15
cmp rax, r9
jne 0x180039836
lea r10, [rax + rcx]
cmp rcx, r10
jae 0x180039124
mov rdx, r11
sub rdx, rcx
nop dword [rax]
movzx eax, byte [rdx + rcx]
cmp byte [rcx], al
jne 0x180039836
inc rcx
cmp rcx, r10
jb 0x180039110
lea r10, [0x1800534b0]
mov rdx, r10
nop
inc rdx
cmp byte [rdx], 0
jne 0x180039130
sub rdx, r10
mov rsi, qword [r8 + 0x30]
test rsi, rsi
je 0x18003918c
mov rcx, qword [rsi]
test rcx, rcx
je 0x180039152
mov rax, qword [rsi + 0x10]
jmp 0x180039157
xor eax, eax
mov rcx, r15
cmp rax, rdx
jne 0x180039183
lea r9, [rax + rcx]
cmp rcx, r9
jae 0x18003918e
mov r8, r10
sub r8, rcx
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
cmp byte [rcx], al
jne 0x180039183
inc rcx
cmp rcx, r9
jb 0x180039170
jmp 0x18003918e
mov rsi, qword [rsi + 0x58]
test rsi, rsi
jne 0x180039144
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 0x18003981e
mov r9, rdx
nop word [rax + rax]
inc r9
cmp byte [r9], 0
jne 0x1800391d0
sub r9, rdx
mov r13, qword [rsi + 0x40]
mov r10, r13
mov qword [rsp + 0x30], r13
test r13, r13
je 0x180039791
mov rcx, qword [r10]
test rcx, rcx
je 0x1800391ff
mov rax, qword [r10 + 0x10]
jmp 0x180039204
xor eax, eax
mov rcx, r15
cmp rax, r9
jne 0x1800397ca
lea r8, [rax + rcx]
cmp rcx, r8
jae 0x180039234
sub rdx, rcx
nop dword [rax]
movzx eax, byte [rdx + rcx]
cmp byte [rcx], al
jne 0x1800397c3
inc rcx
cmp rcx, r8
jb 0x180039220
mov rdx, r11
inc rdx
cmp byte [rdx], 0
jne 0x180039237
sub rdx, r11
mov r10, r13
mov rcx, qword [r10]
test rcx, rcx
je 0x180039253
mov rax, qword [r10 + 0x10]
jmp 0x180039258
xor eax, eax
mov rcx, r15
cmp rax, rdx
jne 0x180039283
lea r9, [rax + rcx]
cmp rcx, r9
jae 0x18003928c
mov r8, r11
sub r8, rcx
nop dword [rax]
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x180039283
inc rcx
cmp rcx, r9
jb 0x180039270
jmp 0x18003928c
mov r10, qword [r10 + 0x30]
test r10, r10
jne 0x180039245
mov rdx, rbx
nop
inc rdx
cmp byte [rdx], 0
jne 0x180039290
sub rdx, rbx
mov r12, r13
nop
mov rcx, qword [r12]
test rcx, rcx
je 0x1800392b0
mov rax, qword [r12 + 0x10]
jmp 0x1800392b5
xor eax, eax
mov rcx, r15
cmp rax, rdx
jne 0x1800392e3
lea r9, [rax + rcx]
cmp rcx, r9
jae 0x1800392ed
mov r8, rbx
sub r8, rcx
nop dword [rax]
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x1800392e3
inc rcx
cmp rcx, r9
jb 0x1800392d0
jmp 0x1800392ed
mov r12, qword [r12 + 0x30]
test r12, r12
jne 0x1800392a0
mov rdx, rdi
inc rdx
cmp byte [rdx], 0
jne 0x1800392f0
sub rdx, rdi
mov r15, r13
nop
mov rcx, qword [r15]
lea r11, [0x18006a298]
test rcx, rcx
je 0x180039315
mov rax, qword [r15 + 0x10]
jmp 0x18003931a
xor eax, eax
mov rcx, r11
cmp rax, rdx
jne 0x180039343
lea r9, [rax + rcx]
cmp rcx, r9
jae 0x18003934c
mov r8, rdi
sub r8, rcx
nop
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x180039343
inc rcx
cmp rcx, r9
jb 0x180039330
jmp 0x18003934c
mov r15, qword [r15 + 0x30]
test r15, r15
jne 0x180039300
mov rdx, r14
nop
inc rdx
cmp byte [rdx], 0
jne 0x180039350
sub rdx, r14
mov r14, r13
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x18003936e
mov rax, qword [r14 + 0x10]
jmp 0x180039373
xor eax, eax
mov rcx, r11
cmp rax, rdx
jne 0x1800393a3
lea r9, [rcx + rax]
cmp rcx, r9
jae 0x1800393ac
lea r8, [0x18004fe48]
sub r8, rcx
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x1800393a3
inc rcx
cmp rcx, r9
jb 0x180039390
jmp 0x1800393ac
mov r14, qword [r14 + 0x30]
test r14, r14
jne 0x180039360
lea rbx, [0x18004fe4c]
mov rdx, rbx
inc rdx
cmp byte [rdx], 0
jne 0x1800393b6
sub rdx, rbx
mov rdi, r13
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800393d2
mov rax, qword [rdi + 0x10]
jmp 0x1800393d7
xor eax, eax
mov rcx, r11
cmp rax, rdx
jne 0x180039403
lea r9, [rax + rcx]
cmp rcx, r9
jae 0x18003940c
mov r8, rbx
sub r8, rcx
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x180039403
inc rcx
cmp rcx, r9
jb 0x1800393f0
jmp 0x18003940c
mov rdi, qword [rdi + 0x30]
test rdi, rdi
jne 0x1800393c4
lea rax, [0x18004fe50]
mov rdx, rax
inc rdx
cmp byte [rdx], 0
jne 0x180039416
sub rdx, rax
mov rbx, r13
mov rcx, qword [rbx]
test rcx, rcx
je 0x180039432
mov rax, qword [rbx + 0x10]
jmp 0x180039437
xor eax, eax
mov rcx, r11
cmp rax, rdx
jne 0x180039463
lea r9, [rax + rcx]
cmp rcx, r9
jae 0x18003946c
lea r8, [0x18004fe50]
sub r8, rcx
nop
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x180039463
inc rcx
cmp rcx, r9
jb 0x180039450
jmp 0x18003946c
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x180039424
lea rax, [0x18004fe44]
mov rdx, rax
inc rdx
cmp byte [rdx], 0
jne 0x180039476
sub rdx, rax
mov rcx, qword [r13]
test rcx, rcx
je 0x180039490
mov rax, qword [r13 + 0x10]
jmp 0x180039495
xor eax, eax
mov rcx, r11
cmp rax, rdx
jne 0x1800394c3
lea r9, [rcx + rax]
cmp rcx, r9
jae 0x1800394cc
lea r8, [0x18004fe44]
sub r8, rcx
nop dword [rax]
movzx eax, byte [rcx + r8]
cmp byte [rcx], al
jne 0x1800394c3
inc rcx
cmp rcx, r9
jb 0x1800394b0
jmp 0x1800394cc
mov r13, qword [r13 + 0x30]
test r13, r13
jne 0x180039481
test r10, r10
je 0x1800394eb
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 0x1800394ef
movaps xmm12, xmm13
test r12, r12
je 0x180039513
mov rax, qword [r12 + 8]
lea rcx, [0x18006a298]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm11, xmm0
jmp 0x180039517
movaps xmm11, xmm13
test r15, r15
je 0x18003953d
mov rax, qword [r15 + 8]
lea r15, [0x18006a298]
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 0x180039548
movaps xmm10, xmm13
lea r15, [0x18006a298]
test r14, r14
je 0x180039567
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 0x18003956b
movaps xmm9, xmm13
test rdi, rdi
je 0x18003958a
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 0x18003958e
movaps xmm8, xmm13
test rbx, rbx
je 0x1800395ac
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 0x1800395b0
movaps xmm7, xmm13
test r13, r13
je 0x1800395ce
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 0x1800395d2
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 0x180039610
lea rcx, [rsp + 0x98]
call fcn.180007af0
nop
mov rdi, qword [rsp + 0x50]
add rdi, 8
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180036a80
mov rbx, qword [rsp + 0x40]
cmp byte [rbx + 0x19], 0
jne 0x18003966c
lea r8, [rbx + 0x20]
lea rdx, [rsp + 0x98]
mov rcx, rdi
call fcn.180037070
test al, al
je 0x180039707
movabs rax, 0x222222222222222
cmp qword [rdi + 8], rax
je 0x18003995c
mov rbx, qword [rdi]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r14
mov ecx, 0x78
call fcn.18004a4dc
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.1800115b0
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 0x180039775
inc rdx
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180039770
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180039770
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004a518
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 0x1800397a0
sub r9, r10
mov rsi, qword [rsi + 0x58]
test rsi, rsi
je 0x18003981e
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800397de
mov rax, qword [rsi + 0x10]
jmp 0x1800397e3
lea rdx, str.name
mov r10, qword [r10 + 0x30]
mov qword [rsp + 0x30], r10
test r10, r10
jne 0x1800391f1
jmp 0x180039791
xor eax, eax
mov rcx, r15
cmp rax, r9
jne 0x180039815
lea r8, [rax + rcx]
cmp rcx, r8
jae 0x1800391b7
mov rdx, r10
sub rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
cmp byte [rcx], al
jne 0x180039815
inc rcx
cmp rcx, r8
jb 0x180039800
jmp 0x1800391b7
mov rsi, qword [rsi + 0x58]
test rsi, rsi
jne 0x1800397b5
movzx esi, byte [rsp + 0x20]
lea rcx, [rsp + 0x120]
call fcn.18001a7d0
nop
jmp 0x1800398e1
mov r8, qword [r8 + 0x58]
test r8, r8
jne 0x1800390e0
jmp 0x180039823
mov rdx, qword [rdx + 0x58]
test rdx, rdx
jne 0x180039074
jmp 0x180039823
cmp al, 0x3c
jne 0x180039962
lea rax, [r8 + 1]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xc0]
call fcn.1800166d0
mov rcx, rax
test rax, rax
jne 0x180039889
mov r8, qword [rsp + 0x30]
jmp 0x180039010
cmp qword [rsp + 0xf0], 0
je 0x1800398ae
mov rax, qword [rsp + 0xf8]
mov qword [rcx + 0x50], rax
mov rax, qword [rsp + 0xf8]
mov qword [rax + 0x58], rcx
jmp 0x1800398ba
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 0x180039010
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.18004a518
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.18004a5b0
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.180011830
nop
lea rdx, [0x18004ff18]
lea rcx, [rsp + 0x70]
call fcn.18001a730
lea rdx, [0x180062c90]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3