Function at 0x140001e70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x1400bfbc8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001eb8
xor eax, eax
cmp edx, edx
cmovne eax, edx
jmp 0x14000212a
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140001ef2
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140001ef2
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 0x14000212a
cmp qword [rbx + 0x80], 0
jne 0x140001f04
or eax, 0xffffffff
jmp 0x14000212a
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140001f31
mov rdx, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x88]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x68], 0
jne 0x140001f55
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.1400505e8
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x140002128
mov byte [rbp - 0x19], sil
mov qword [rbp + 0x1f], reloc.WS2_32.dll_ntohs
xor eax, eax
mov qword [rbp + 0x17], rax
mov byte [rbp + 7], al
xor edx, edx
lea r8d, [rax + 8]
lea rcx, [rbp + 7]
call fcn.14004d3e0
mov qword [rbp + 0x17], 8
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rax, qword [rbp + 7]
mov byte [rax + 8], 0
lea r15, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov rdx, qword [rbp + 7]
mov r8, qword [rbp + 0x1f]
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbp + 7]
cmp r8, 0x10
cmovae rcx, rdx
lea r9, [rbp + 7]
cmovae r9, rdx
mov r10, qword [rbx + 0x68]
mov rdx, qword [rbp + 0x17]
add rdx, rcx
mov rax, qword [r10]
cmp rax, r15
je 0x1400020a9
lea rcx, [rbp - 9]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r9
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x18]
lea r8, [rbp - 0x19]
lea rdx, [rbx + 0x74]
mov rcx, r10
call qword [rax + gethostname]
test eax, eax
js 0x1400020a4
cmp eax, 1
jg 0x14000209f
lea rax, [rbp + 7]
mov rdx, qword [rbp + 7]
mov r8, qword [rbp + 0x1f]
cmp r8, 0x10
cmovae rax, rdx
mov rdi, qword [rbp - 9]
sub rdi, rax
je 0x140002064
lea rcx, [rbp + 7]
cmp r8, 0x10
cmovae rcx, rdx
mov r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
call fcn.1400543a8
mov r8, qword [rbp + 0x1f]
mov rdx, qword [rbp + 7]
cmp rdi, rax
jne 0x140002096
mov byte [rbx + 0x71], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 0x11], rax
jne 0x14000209b
test rdi, rdi
jne 0x140001fb0
cmp qword [rbp + 0x17], 0x20
jae 0x140002096
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp + 7]
call fcn.140004d20
jmp 0x140001f9a
or ebx, 0xffffffff
jmp 0x1400020d5
mov ebx, esi
jmp 0x1400020d5
cmp eax, 3
je 0x1400020b5
or ebx, 0xffffffff
jmp 0x1400020cd
lea rax, [rbp - 0x19]
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], r9
movsx ecx, byte [rbp - 0x19]
mov rdx, qword [rbx + 0x80]
call fcn.1400505e8
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
mov rdx, qword [rbp + 7]
mov r8, qword [rbp + 0x1f]
cmp r8, 0x10
jb 0x140002128
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x140002120
test byte [rbp + 7], 0x1f
je 0x1400020f3
call fcn.140050420
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x140002102
call fcn.140050420
int3
sub rdx, rax
cmp rdx, 8
jae 0x140002111
call fcn.140050420
int3
cmp rdx, 0x27
jbe 0x14000211d
call fcn.140050420
int3
mov rdx, rax
mov rcx, rdx
call fcn.14004bca4
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14004bcc0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret