Function at 0x10000b5bc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x110
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rsi, r8
mov rbp, rdx
xor r14d, r14d
cmp rdx, r14
jne 0x10000b650
lea ecx, [r14 + 0x38]
call qword [sym.imp.unbcl.dll_public:_static_void____ptr64___cdecl_UnBCL::Object::operator_new_unsigned_long_long_unsigned___int64__]
mov rdi, rax
mov qword [rsp + 0x40], rax
cmp rax, r14
je 0x10000b620
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 [rdi], r11
jmp 0x10000b623
mov rdi, r14
lea rdx, [0x100003ed0]
mov rcx, rdi
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Exception::AddStackTrace_char_const____ptr64____ptr64]
mov qword [rsp + 0x158], rdi
lea rdx, [0x1000118a0]
lea rcx, [rsp + 0x158]
call sub.msvcrt.dll__CxxThrowException
int3
cmp r8, r14
jne 0x10000b6b9
mov ecx, 0x38
call qword [sym.imp.unbcl.dll_public:_static_void____ptr64___cdecl_UnBCL::Object::operator_new_unsigned_long_long_unsigned___int64__]
mov rdi, rax
mov qword [rsp + 0x40], rax
cmp rax, r14
je 0x10000b689
lea rdx, [0x100003d50]
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 [rdi], r11
jmp 0x10000b68c
mov rdi, r14
lea rdx, [0x100003ed0]
mov rcx, rdi
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Exception::AddStackTrace_char_const____ptr64____ptr64]
mov qword [rsp + 0x158], rdi
lea rdx, [0x1000118a0]
lea rcx, [rsp + 0x158]
call sub.msvcrt.dll__CxxThrowException
int3
movzx ecx, word [rdx]
call fcn.10000b47c
mov r13d, eax
lea edx, [r13 + r13]
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
lea edx, [r13 - 1]
lea rcx, [rsp + 0x60]
call qword [sym.imp.unbcl.dll_public_virtual:_unsigned_char____ptr64___cdecl_UnBCL::Array_unsigned_char_::GetBuffer_int____ptr64]
mov r12, rax
and r12, 0xfffffffffffffe00
mov rbx, r13
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
add rcx, rcx
cmp rcx, r13
jbe 0x10000b7ab
mov rdx, rsi
lea rcx, [0x100003f70]
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 + 0x48]
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::SmartPtr_class_UnBCL::String_::constructor_class_UnBCL::String____ptr64____ptr64]
nop
mov ecx, 0x38
call qword [sym.imp.unbcl.dll_public:_static_void____ptr64___cdecl_UnBCL::Object::operator_new_unsigned_long_long_unsigned___int64__]
mov rdi, rax
mov qword [rsp + 0x40], rax
cmp rax, r14
je 0x10000b77b
lea rcx, [rsp + 0x48]
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 rdx, rax
mov rcx, rdi
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::ArgumentException::constructor_unsigned_short_int_const____ptr64____ptr64]
lea r11, [0x1000039c8]
mov qword [rdi], r11
jmp 0x10000b77e
mov rdi, r14
lea rdx, [0x100003ed0]
mov rcx, rdi
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Exception::AddStackTrace_char_const____ptr64____ptr64]
mov qword [rsp + 0x158], rdi
lea rdx, [0x1000118f0]
lea rcx, [rsp + 0x158]
call sub.msvcrt.dll__CxxThrowException
nop
mov r8, rbx
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_memset
shr rbx, 1
je 0x10000b804
cmp rbx, 0x7fffffff
ja 0x10000b804
mov rcx, r12
mov edx, 0x7ffffffe
sub rdx, rbx
mov rdi, rsi
sub rdi, r12
lea rax, [rdx + rbx]
cmp rax, r14
je 0x10000b7f7
movzx eax, word [rdi + rcx]
cmp ax, r14w
je 0x10000b7f7
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x10000b7d7
cmp rbx, r14
jne 0x10000b800
sub rcx, 2
mov word [rcx], r14w
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xa0000080
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x10000b8d9
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov r8, rsi
mov rdx, rbp
lea rcx, [0x100003fc0]
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 + 0x48]
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 rdi, rax
mov qword [rsp + 0x40], rax
cmp rax, r14
je 0x10000b8a9
lea rcx, [rsp + 0x48]
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, ebx
mov rcx, rdi
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 [rdi], r11
jmp 0x10000b8ac
mov rdi, r14
lea rdx, [0x100003ed0]
mov rcx, rdi
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Exception::AddStackTrace_char_const____ptr64____ptr64]
mov qword [rsp + 0x158], rdi
lea rdx, [0x100011998]
lea rcx, [rsp + 0x158]
call sub.msvcrt.dll__CxxThrowException
nop
mov dword [rsp + 0x148], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x148]
mov r8d, r13d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call sub.KERNEL32.dll_GetLastError
mov r12d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, r14d
je 0x10000b92f
cmp r13d, dword [rsp + 0x148]
jne 0x10000b92f
lea rcx, [rsp + 0x60]
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Array_unsigned_char_::vbase_dtor_void____ptr64]
jmp 0x10000b9c8
mov r8, rbp
mov rdx, rsi
lea rcx, [0x100004020]
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 + 0x48]
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 rdi, rax
mov qword [rsp + 0x40], rax
cmp rax, r14
je 0x10000b998
lea rcx, [rsp + 0x48]
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, r12d
mov rcx, rdi
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 [rdi], r11
jmp 0x10000b99b
mov rdi, r14
lea rdx, [0x100003ed0]
mov rcx, rdi
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Exception::AddStackTrace_char_const____ptr64____ptr64]
mov qword [rsp + 0x158], rdi
lea rdx, [0x100011998]
lea rcx, [rsp + 0x158]
call sub.msvcrt.dll__CxxThrowException
nop
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret