Function at 0x180011240
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 [0x1801878e0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180011288
xor eax, eax
cmp edx, edx
cmovne eax, edx
jmp 0x1800114da
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800112c2
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1800112c2
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 0x1800114da
cmp qword [rbx + 0x80], 0
jne 0x1800112d4
or eax, 0xffffffff
jmp 0x1800114da
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180011301
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 0x180011325
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.18008233c
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x1800114d8
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 r8d, r8d
lea edx, [rax + 8]
lea rcx, [rbp + 7]
call fcn.180009ef0
nop
lea r15, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov rdx, qword [rbp + 7]
mov r8, qword [rbp + 0x1f]
nop dword [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 0x180011459
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 0x180011454
cmp eax, 1
jg 0x18001144f
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 0x180011414
lea rcx, [rbp + 7]
cmp r8, 0x10
cmovae rcx, rdx
mov r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
call fcn.1800868f4
mov r8, qword [rbp + 0x1f]
mov rdx, qword [rbp + 7]
cmp rdi, rax
jne 0x180011446
mov byte [rbx + 0x71], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 0x11], rax
jne 0x18001144b
test rdi, rdi
jne 0x180011360
cmp qword [rbp + 0x17], 0x20
jae 0x180011446
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp + 7]
call fcn.180006bb0
jmp 0x180011351
or ebx, 0xffffffff
jmp 0x180011485
mov ebx, esi
jmp 0x180011485
cmp eax, 3
je 0x180011465
or ebx, 0xffffffff
jmp 0x18001147d
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.18008233c
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
mov rdx, qword [rbp + 7]
mov r8, qword [rbp + 0x1f]
cmp r8, 0x10
jb 0x1800114d8
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x1800114d0
test byte [rbp + 7], 0x1f
je 0x1800114a3
call fcn.18008185c
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x1800114b2
call fcn.18008185c
int3
sub rdx, rax
cmp rdx, 8
jae 0x1800114c1
call fcn.18008185c
int3
cmp rdx, 0x27
jbe 0x1800114cd
call fcn.18008185c
int3
mov rdx, rax
mov rcx, rdx
call fcn.18005e5ac
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18005ef00
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret