Function at 0x140002b30
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400bfbc8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x140002db7
cmp byte [rcx + 0x71], 0
je 0x140002db7
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
jne 0x140002b8e
xor al, al
jmp 0x140002db9
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
xor r14d, r14d
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
xor edx, edx
lea r8d, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.14004d3e0
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rax + 8], r14b
lea r15, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
nop dword [rax]
lea rcx, [rbp - 0x30]
cmp r8, 0x10
cmovae rcx, rdx
lea rbx, [rbp - 0x30]
cmovae rbx, rdx
mov r10, qword [rdi + 0x68]
mov r9, qword [rbp - 0x20]
add r9, rcx
mov rax, qword [r10]
mov r11, qword [rax + 0x40]
cmp rax, r15
jne 0x140002c14
mov qword [rbp - 0x40], rbx
mov eax, r14d
jmp 0x140002c36
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rdi + 0x74]
mov rcx, r10
call r11
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x40]
test eax, eax
je 0x140002c45
sub eax, 1
jne 0x140002d3a
jmp 0x140002c49
mov byte [rdi + 0x71], 0
lea rax, [rbp - 0x30]
cmp r8, 0x10
cmovae rax, rdx
sub rbx, rax
je 0x140002c8b
lea rcx, [rbp - 0x30]
cmp r8, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
call fcn.1400543a8
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x140002d3f
cmp byte [rdi + 0x71], 0
je 0x140002d5d
test rbx, rbx
jne 0x140002be0
or rax, 0xffffffffffffffff
mov rcx, qword [rbp - 0x20]
sub rax, rcx
cmp rax, 8
jbe 0x140002d50
lea rbx, [rcx + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x140002d43
cmp r8, rbx
jae 0x140002cdf
mov r8, rcx
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.1400051b0
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
jmp 0x140002cfb
test rbx, rbx
jne 0x140002d04
mov qword [rbp - 0x20], r14
lea rax, [rbp - 0x30]
cmp r8, 0x10
cmovae rax, rdx
mov byte [rax], bl
jmp 0x140002bd1
test rbx, rbx
je 0x140002be0
lea rcx, [rbp - 0x30]
cmp r8, 0x10
cmovae rcx, rdx
add rcx, qword [rbp - 0x20]
xor edx, edx
lea r8d, [rdx + 8]
call fcn.14004d3e0
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rbx + rax], 0
jmp 0x140002bd1
sub eax, 2
je 0x140002d5d
xor bl, bl
jmp 0x140002d5f
lea rcx, str.string_too_long
call fcn.14004a734
int3
lea rcx, str.string_too_long
call fcn.14004a734
int3
mov bl, 1
cmp r8, 0x10
jb 0x140002db2
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x140002daa
test byte [rbp - 0x30], 0x1f
je 0x140002d7d
call fcn.140050420
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x140002d8c
call fcn.140050420
int3
sub rdx, rax
cmp rdx, 8
jae 0x140002d9b
call fcn.140050420
int3
cmp rdx, 0x27
jbe 0x140002da7
call fcn.140050420
int3
mov rdx, rax
mov rcx, rdx
call fcn.14004bca4
movzx eax, bl
jmp 0x140002db9
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14004bcc0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret