Function at 0x1400b4d80
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x180], rbx
mov rax, qword [0x140121ef0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, rdx
mov r14, rcx
test rdx, rdx
je 0x1400b51d1
xor r15d, r15d
cmp r15w, word [rdx]
je 0x1400b51d1
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r15
mov word [rsp + 0x58], r15w
lea r8, [0x1400f25a0]
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCR110.dll__wfopen_s]
mov esi, eax
test eax, eax
jne 0x1400b51bb
or rdi, 0xffffffffffffffff
cmp qword [rsp + 0x28], 0
je 0x1400b50ef
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
lea r8d, [r15 + 2]
lea rdx, [0x1400f25a8]
lea rcx, [rsp + 0x38]
call fcn.140003310
nop
mov r9, qword [rsp + 0x28]
mov esi, 1
lea r8d, [r15 + 4]
mov edx, esi
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR110.dll_fread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR110.dll_fclose]
movzx eax, word [rsp + 0x20]
cmp ax, word [0x1400f2034]
jne 0x1400b4e83
movzx eax, byte [rsp + 0x22]
cmp al, byte [0x1400f2036]
je 0x1400b4fb7
movzx eax, word [rsp + 0x20]
cmp ax, word [0x1400f2054]
jne 0x1400b4eba
mov r8d, 6
lea rdx, str.__ccs
lea rcx, [rsp + 0x38]
call fcn.140004d20
mov r8d, 8
lea rdx, str.UTF_16LE
jmp 0x1400b4fdb
movzx eax, word [rsp + 0x20]
cmp ax, word [0x1400f20b4]
je 0x1400b4f51
mov eax, dword [rsp + 0x20]
cmp eax, dword [0x1400f20dc]
jne 0x1400b4f01
mov r8d, 6
lea rdx, str.__ccs
lea rcx, [rsp + 0x38]
call fcn.140004d20
mov r8d, 8
lea rdx, str.UTF_32LE
jmp 0x1400b4fdb
cmp eax, dword [0x1400f2104]
je 0x1400b4f8e
movzx ecx, byte [rsp + 0x20]
cmp cl, byte [0x1400f2037]
jne 0x1400b4f43
movzx eax, word [rsp + 0x20]
mov r8d, 6
lea rdx, str.__ccs
lea rcx, [rsp + 0x38]
cmp ax, word [0x1400f211c]
jne 0x1400b4fc9
jmp 0x1400b4ea3
movzx ecx, word [rsp + 0x20]
cmp cx, word [0x1400f2134]
jne 0x1400b4f7a
mov r8d, 6
lea rdx, str.__ccs
lea rcx, [rsp + 0x38]
call fcn.140004d20
mov r8d, 8
lea rdx, [0x1400f2120]
jmp 0x1400b50c9
cmp eax, dword [0x1400f214c]
je 0x1400b4ed8
cmp eax, dword [0x1400f2164]
jne 0x1400b4fb7
mov r8d, 6
lea rdx, str.__ccs
lea rcx, [rsp + 0x38]
call fcn.140004d20
mov r8d, 8
lea rdx, str.UTF_32BE
jmp 0x1400b50c9
mov r8d, 6
lea rdx, str.__ccs
lea rcx, [rsp + 0x38]
call fcn.140004d20
lea rdx, str.UTF_8
mov r8d, 5
lea rcx, [rsp + 0x38]
call fcn.140004d20
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r8, qword [rsp + 0x38]
mov rdx, rbx
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCR110.dll__wfopen_s]
mov esi, eax
test eax, eax
jne 0x1400b50d4
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400b50d4
call qword [sym.imp.MSVCR110.dll_feof]
test eax, eax
jne 0x1400b50a9
nop word [rax + rax]
xor edx, edx
mov r8d, QueryPathOfRegTypeLib
lea rcx, [rbp - 0x80]
call sub.MSVCR110.dll_memset
mov r9, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 0x4e]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCR110.dll_fread]
cmp rax, 0x50
je 0x1400b506e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR110.dll_feof]
test eax, eax
je 0x1400b50a9
cmp word [rbp - 0x80], 0
jne 0x1400b507a
mov r8, r15
jmp 0x1400b508c
lea rax, [rbp - 0x80]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x1400b5081
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.140004d20
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR110.dll_feof]
test eax, eax
je 0x1400b5030
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR110.dll_fclose]
nop
cmp qword [rsp + 0x50], 8
jb 0x1400b50ef
mov rcx, qword [rsp + 0x38]
call sub.mfc110u.dll_Ordinal_1482
jmp 0x1400b50ef
lea rcx, [rsp + 0x38]
call fcn.140004d20
nop
cmp qword [rsp + 0x50], 8
jb 0x1400b51bb
mov rcx, qword [rsp + 0x38]
call sub.mfc110u.dll_Ordinal_1482
jmp 0x1400b51bb
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400b51bb
sub rdi, rcx
cmp rdi, 1
ja 0x1400b5114
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rbx, [rcx + 1]
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
jbe 0x1400b5135
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rdx, qword [rsp + 0x70]
cmp rdx, rbx
jae 0x1400b5151
mov r8, rcx
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140002bc0
jmp 0x1400b516e
test rbx, rbx
jne 0x1400b517d
mov qword [rsp + 0x68], r15
lea rax, [rsp + 0x58]
cmp rdx, 8
cmovae rax, qword [rsp + 0x58]
mov word [rax], r15w
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
test rbx, rbx
je 0x1400b51ac
lea rax, [rsp + 0x58]
cmp rdx, 8
cmovae rax, qword [rsp + 0x58]
mov word [rax + rcx*2], r15w
mov qword [rsp + 0x68], rbx
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
mov word [rax + rbx*2], r15w
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.1400b5200
mov esi, eax
cmp qword [rsp + 0x70], 8
jb 0x1400b51cd
mov rcx, qword [rsp + 0x58]
call sub.mfc110u.dll_Ordinal_1482
mov eax, esi
jmp 0x1400b51d6
mov eax, reloc.WS2_32.dll_shutdown
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400bb310
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret