Function at 0x1400022d4
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400990f0
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401475c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x78], 0
je 0x1400992fa
cmp byte [rcx + 0x81], 0
je 0x1400992fa
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
jne 0x14009914c
xor al, al
jmp 0x1400992fc
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x18], rdx
mov byte [rbp - 0x30], 0
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r14d, r14d
mov rdx, qword [rbp - 0x18]
nop dword [rax]
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov r9, qword [rbp - 0x20]
add r9, rcx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.MSVCP120.dll_public:_int___cdecl_std::codecvt_char__char__int_::unshift_int____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400991c5
dec eax
jne 0x1400992bb
jmp 0x1400991cc
mov byte [rdi + 0x81], r14b
lea rax, [rbp - 0x30]
mov r9, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
cmovae rax, r9
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x140099217
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, rbx
mov edx, 1
call qword [sym.imp.MSVCR120.dll_fwrite]
mov rdx, qword [rbp - 0x18]
cmp rbx, rax
jne 0x1400992c4
cmp byte [rdi + 0x81], r14b
je 0x1400992e4
test rbx, rbx
jne 0x140099180
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x20]
sub rax, r8
cmp rax, 8
jbe 0x1400992d6
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x1400992c8
cmp rdx, rbx
jae 0x140099263
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140001aaa
mov rdx, qword [rbp - 0x18]
jmp 0x140099281
test rbx, rbx
jne 0x14009928a
mov qword [rbp - 0x20], r14
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rax], r14b
jmp 0x140099179
test rbx, rbx
je 0x140099180
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x20]
xor edx, edx
mov qword [rax + rcx], rdx
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rbx + rax], dl
jmp 0x140099179
mov rdx, qword [rbp - 0x18]
sub eax, 2
je 0x1400992e4
xor bl, bl
jmp 0x1400992e6
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov bl, 1
cmp rdx, 0x10
jb 0x1400992f5
mov rcx, qword [rbp - 0x30]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
movzx eax, bl
jmp 0x1400992fc
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400bcf10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret