Function at 0x1400b80d0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov esi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400b8111
xor eax, eax
jmp 0x1400b82e1
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400b814b
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400b814b
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x1400b82e1
cmp qword [rbx + 0x90], 0
jne 0x1400b815d
or eax, 0xffffffff
jmp 0x1400b82e1
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
lea rax, [rbx + 0x80]
cmp rcx, rax
jne 0x1400b8184
mov r8, qword [rbx + 0x70]
mov r9, r8
mov rdx, qword [rbx + 0x68]
mov rcx, rbx
call qword [sym.imp.MSVCP110.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
cmp qword [rbx + 0x78], 0
jne 0x1400b81a9
movsx ecx, sil
mov rdx, qword [rbx + 0x90]
call qword [sym.imp.MSVCR110.dll_fputc]
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x1400b82df
mov byte [rbp + 0xf], sil
mov qword [rbp + 0x2f], shutdown
mov qword [rbp + 0x27], 0
mov byte [rbp + 0x17], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 0x17]
call fcn.140012860
nop
lea rcx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0x10
cmovae rcx, qword [rbp + 0x17]
lea rdx, [rbp + 0x17]
cmovae rdx, qword [rbp + 0x17]
add rcx, qword [rbp + 0x27]
lea rax, [rbp + 7]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x10]
lea r8, [rbp + 0xf]
lea rdx, [rbx + 0x84]
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.MSVCP110.dll_public:_int___cdecl_std::codecvt_char__char__int_::out_int____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
js 0x1400b82cb
cmp eax, 1
jg 0x1400b82ab
lea rax, [rbp + 0x17]
mov r8, qword [rbp + 0x17]
mov r9, qword [rbp + 0x2f]
cmp r9, 0x10
cmovae rax, r8
mov rdi, qword [rbp + 7]
sub rdi, rax
je 0x1400b8272
lea rcx, [rbp + 0x17]
cmp r9, 0x10
cmovae rcx, r8
mov r9, qword [rbx + 0x90]
mov r8, rdi
mov edx, 1
call qword [sym.imp.MSVCR110.dll_fwrite]
cmp rdi, rax
jne 0x1400b82cb
mov byte [rbx + 0x81], 1
lea rax, [rbp + 0xf]
cmp qword [rbp - 1], rax
jne 0x1400b82a7
test rdi, rdi
jne 0x1400b81d2
cmp qword [rbp + 0x27], 0x20
jae 0x1400b82cb
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp + 0x17]
call fcn.140012b10
jmp 0x1400b81d2
mov ebx, esi
jmp 0x1400b82ce
cmp eax, 3
jne 0x1400b82cb
movsx ecx, byte [rbp + 0xf]
mov rdx, qword [rbx + 0x90]
call qword [sym.imp.MSVCR110.dll_fputc]
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x1400b82ce
or ebx, 0xffffffff
cmp qword [rbp + 0x2f], 0x10
jb 0x1400b82df
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401e3980
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret