Function at 0x10000b9ec
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x110
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, rdx
test rdx, rdx
jne 0x10000ba76
lea ecx, [rdx + 0x38]
call qword [sym.imp.unbcl.dll_public:_static_void____ptr64___cdecl_UnBCL::Object::operator_new_unsigned_long_long_unsigned___int64__]
mov rbx, rax
mov qword [rsp + 0x158], rax
test rax, rax
je 0x10000ba47
lea rdx, [0x100003f48]
mov rcx, rax
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::ArgumentNullException::constructor_unsigned_short_int_const____ptr64____ptr64]
lea r11, [0x100003a58]
mov qword [rbx], r11
jmp 0x10000ba49
xor ebx, ebx
lea rdx, [fcn.1000040a0]
mov rcx, rbx
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Exception::AddStackTrace_char_const____ptr64____ptr64]
mov qword [rsp + 0x150], rbx
lea rdx, [0x1000118a0]
lea rcx, [rsp + 0x150]
call sub.msvcrt.dll__CxxThrowException
int3
movzx ecx, word [rdx]
call fcn.10000b47c
mov esi, eax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x10000bb55
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov rdx, rdi
lea rcx, [fcn.100004110]
call qword [sym.imp.unbcl.dll_public:_static_class_UnBCL::String____ptr64___cdecl_UnBCL::String::Format_unsigned_short_int_const____ptr64_]
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::SmartPtr_class_UnBCL::String_::constructor_class_UnBCL::String____ptr64____ptr64]
nop
lea ecx, [r12 + 0x41]
call qword [sym.imp.unbcl.dll_public:_static_void____ptr64___cdecl_UnBCL::Object::operator_new_unsigned_long_long_unsigned___int64__]
mov rbx, rax
mov qword [rsp + 0x158], rax
test rax, rax
je 0x10000bb26
lea rcx, [rsp + 0x40]
call qword [sym.imp.unbcl.dll_public:_class_UnBCL::String____ptr64___cdecl_UnBCL::SmartPtr_class_UnBCL::String_::operator___void_const___ptr64]
mov rcx, rax
call qword [sym.imp.unbcl.dll_public:_unsigned_short_int_const____ptr64___cdecl_UnBCL::String::get_CString_void_const___ptr64]
mov r8, rax
mov edx, esi
mov rcx, rbx
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Win32Exception::constructor_unsigned_long_int__unsigned_short_int_const____ptr64____ptr64]
lea r11, [0x100004398]
mov qword [rbx], r11
jmp 0x10000bb28
xor ebx, ebx
lea rdx, [fcn.1000040a0]
mov rcx, rbx
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Exception::AddStackTrace_char_const____ptr64____ptr64]
mov qword [rsp + 0x150], rbx
lea rdx, [0x100011998]
lea rcx, [rsp + 0x150]
call sub.msvcrt.dll__CxxThrowException
nop
lea edx, [rsi + 2]
mov r9d, 1
xor r8d, r8d
lea rcx, [rsp + 0x60]
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Array_unsigned_char_::constructor_int__int____ptr64]
nop
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.unbcl.dll_public_virtual:_unsigned_char____ptr64___cdecl_UnBCL::Array_unsigned_char_::GetBuffer_int____ptr64]
mov rbp, rax
and dword [rsp + 0x148], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x148]
mov r8d, esi
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call sub.KERNEL32.dll_GetLastError
mov r13d, eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10000bc15
cmp esi, dword [rsp + 0x148]
jne 0x10000bc15
mov byte [rsi + rbp], 0
lea eax, [rsi + 1]
mov byte [rax + rbp], 0
mov ecx, 0x18
call qword [sym.imp.unbcl.dll_public:_static_void____ptr64___cdecl_UnBCL::Object::operator_new_unsigned_long_long_unsigned___int64__]
mov rbx, rax
mov qword [rsp + 0x150], rax
test rax, rax
je 0x10000bc00
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::String::constructor_unsigned_short_int_const____ptr64____ptr64]
lea r11, [fcn.100003978]
mov qword [rbx], r11
jmp 0x10000bc02
xor ebx, ebx
lea rcx, [rsp + 0x60]
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Array_unsigned_char_::vbase_dtor_void____ptr64]
mov rax, rbx
jmp 0x10000bcad
mov rdx, rdi
lea rcx, [fcn.100004150]
call qword [sym.imp.unbcl.dll_public:_static_class_UnBCL::String____ptr64___cdecl_UnBCL::String::Format_unsigned_short_int_const____ptr64_]
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::SmartPtr_class_UnBCL::String_::constructor_class_UnBCL::String____ptr64____ptr64]
nop
mov ecx, 0x40
call qword [sym.imp.unbcl.dll_public:_static_void____ptr64___cdecl_UnBCL::Object::operator_new_unsigned_long_long_unsigned___int64__]
mov rbx, rax
mov qword [rsp + 0x158], rax
test rax, rax
je 0x10000bc7e
lea rcx, [rsp + 0x40]
call qword [sym.imp.unbcl.dll_public:_class_UnBCL::String____ptr64___cdecl_UnBCL::SmartPtr_class_UnBCL::String_::operator___void_const___ptr64]
mov rcx, rax
call qword [sym.imp.unbcl.dll_public:_unsigned_short_int_const____ptr64___cdecl_UnBCL::String::get_CString_void_const___ptr64]
mov r8, rax
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Win32Exception::constructor_unsigned_long_int__unsigned_short_int_const____ptr64____ptr64]
lea r11, [0x100004398]
mov qword [rbx], r11
jmp 0x10000bc80
xor ebx, ebx
lea rdx, [fcn.1000040a0]
mov rcx, rbx
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Exception::AddStackTrace_char_const____ptr64____ptr64]
mov qword [rsp + 0x150], rbx
lea rdx, [0x100011998]
lea rcx, [rsp + 0x150]
call sub.msvcrt.dll__CxxThrowException
nop
mov rbx, qword [rsp + 0x140]
add rsp, 0x110
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret