Function at 0x140001730
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x148], rax
mov edi, r9d
mov dword [rsp + 0x34], r9d
mov r13, r8
mov r12, rdx
mov r15, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
cmp byte [rdx], 0x7c
jne 0x14000179e
lea ecx, [r14 + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Pipe_syntax_in_dump_name_not_supported_n
call fcn.140001010
xor al, al
jmp 0x140001cb4
mov ecx, 1
lea rdx, [rbp - 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
movzx ecx, byte [r12]
test cl, cl
je case.0x14000184b.0
movabs rsi, 0xcccccccccccccccd
movabs r8, 0x2525252525252525
lea rdx, [0x140000000]
cmp cl, 0x25
je 0x140001828
mov rdx, qword [r15 + 0x10]
mov r9, qword [r15 + 0x18]
mov rax, r9
sub rax, rdx
cmp rax, 1
jb 0x140001817
lea rax, [rdx + 1]
mov qword [r15 + 0x10], rax
mov r8, r15
cmp r9, 0x10
jb 0x140001802
mov r8, qword [r15]
movsx eax, cl
movzx eax, al
mov byte [r8 + rdx], al
mov byte [r8 + rdx + 1], 0
jmp 0x140001c98
mov byte [rsp + 0x20], cl
mov rcx, r15
call fcn.140002020
jmp 0x140001c98
inc r12
movsx rbx, byte [r12]
cmp ebx, 0x75
ja case.0x14000184b.2
movzx eax, byte [rdx + rbx + 0x1d64]
mov ecx, dword [rdx + rax*4 + 0x1d44]
add rcx, rdx
jmp rcx
mov rcx, qword [r15 + 0x10]
mov rdx, qword [r15 + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140001880
lea rax, [rcx + 1]
mov qword [r15 + 0x10], rax
mov rax, r15
cmp rdx, 0x10
jb 0x140001875
mov rax, qword [r15]
mov word [rax + rcx], 0x25
jmp 0x140001ca2
mov byte [rsp + 0x20], 0x25
mov rcx, r15
call fcn.140002020
jmp 0x140001c98
lea r9, [rbp + 0x145]
mov r8d, edi
test edi, edi
jns 0x1400018f0
neg r8d
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400018b0
dec r9
mov byte [r9], 0x2d
jmp 0x14000191a
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400018f0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov rdi, r14
mov qword [rsp + 0x58], r14
mov esi, 0xf
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x48], 0
lea rax, [rbp + 0x145]
cmp r9, rax
je 0x14000196d
lea r8, [rbp + 0x145]
sub r8, r9
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.140001e40
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x30]
or ebx, 2
mov dword [rsp + 0x30], ebx
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
or ebx, 1
mov dword [rsp + 0x30], ebx
lea r9, [rsp + 0x48]
mov r14, qword [rsp + 0x48]
cmp rsi, 0x10
cmovae r9, r14
mov rcx, qword [r15 + 0x10]
mov rdx, qword [r15 + 0x18]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x1400019db
lea rax, [rdi + rcx]
mov qword [r15 + 0x10], rax
mov rax, r15
cmp rdx, 0x10
jb 0x1400019bf
mov rax, qword [r15]
lea rbx, [rax + rcx]
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call fcn.140006860
mov byte [rdi + rbx], 0
mov ebx, dword [rsp + 0x30]
jmp 0x1400019f5
mov qword [rsp + 0x20], rdi
mov rdx, rdi
mov rcx, r15
call fcn.140002190
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x48]
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
cmp rsi, 0x10
jb 0x140001a33
lea rdx, [rsi + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001a2b
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001cde
mov rcx, r14
call fcn.140002620
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], r14b
mov edi, dword [rsp + 0x34]
movabs rsi, 0xcccccccccccccccd
jmp 0x140001c98
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov r8, qword [rsp + 0x40]
lea r9, [rbp + 0x145]
test r8, r8
jns 0x140001ac0
neg r8
nop dword [rax + rax]
dec r9
mov rax, rsi
mul r8
shr rdx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8, rdx
test rdx, rdx
jne 0x140001a80
dec r9
mov byte [r9], 0x2d
jmp 0x140001aea
dec r9
mov rax, rsi
mul r8
shr rdx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8, rdx
test rdx, rdx
jne 0x140001ac0
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], r14
mov rdi, r14
mov qword [rsp + 0x78], r14
mov esi, 0xf
mov qword [rbp - 0x80], rsi
mov byte [rsp + 0x68], 0
lea rax, [rbp + 0x145]
cmp r9, rax
je 0x140001b3a
lea r8, [rbp + 0x145]
sub r8, r9
mov rdx, r9
lea rcx, [rsp + 0x68]
call fcn.140001e40
mov rsi, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x78]
mov ebx, dword [rsp + 0x30]
or ebx, 8
mov dword [rsp + 0x30], ebx
and ebx, 0xfffffff7
mov dword [rsp + 0x30], ebx
or ebx, 4
mov dword [rsp + 0x30], ebx
lea r9, [rsp + 0x68]
mov r14, qword [rsp + 0x68]
cmp rsi, 0x10
cmovae r9, r14
mov rcx, qword [r15 + 0x10]
mov rdx, qword [r15 + 0x18]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140001ba8
lea rax, [rdi + rcx]
mov qword [r15 + 0x10], rax
mov rax, r15
cmp rdx, 0x10
jb 0x140001b8c
mov rax, qword [r15]
lea rbx, [rax + rcx]
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call fcn.140006860
mov byte [rdi + rbx], 0
mov ebx, dword [rsp + 0x30]
jmp 0x140001bc1
mov qword [rsp + 0x20], rdi
mov rdx, rdi
mov rcx, r15
call fcn.140002190
mov rsi, qword [rbp - 0x80]
mov r14, qword [rsp + 0x68]
and ebx, 0xfffffffb
mov dword [rsp + 0x30], ebx
cmp rsi, 0x10
jb 0x140001bff
lea rdx, [rsi + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001bf7
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001cde
mov rcx, r14
call fcn.140002620
xor r14d, r14d
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], r14b
mov edi, dword [rsp + 0x34]
movabs rsi, 0xcccccccccccccccd
jmp 0x140001c98
mov ecx, 0x401
call fcn.140002628
mov rdi, rax
mov qword [rsp + 0x38], rax
mov edx, 0x400
mov rcx, rax
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140001ce5
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x140001c53
mov rdx, rdi
mov rcx, r15
call fcn.140001fa0
nop
mov rcx, rdi
call fcn.140002620
mov qword [rsp + 0x38], r14
mov edi, dword [rsp + 0x34]
jmp 0x140001c98
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r8 + r13], 0
jne 0x140001c83
mov rdx, r13
mov rcx, r15
call fcn.140001fa0
movabs r8, 0x2525252525252525
inc r12
movzx ecx, byte [r12]
test cl, cl
jne 0x1400017ce
mov al, 1
mov rcx, qword [rbp + 0x148]
xor rcx, rsp
call fcn.140002600
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
mov ebx, eax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r8d, ebx
lea rdx, str.Could_not_get_the_host_name_for_dump_name:__d_n
call fcn.140001010
nop
mov rcx, rdi
call fcn.140002620
mov qword [rsp + 0x38], r14
xor al, al
jmp 0x140001cb4
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r8d, ebx
lea rdx, str.Invalid_dump_name_format_char__c_n
call fcn.140001010
xor al, al
jmp 0x140001cb4