Function at 0x140001f40
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 r12d, r9d
mov r14, r8
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov r15d, ebx
mov dword [rsp + 0x30], ebx
cmp byte [rdx], 0x7c
jne 0x140001f9d
lea rcx, str.Pipe_syntax_in_dump_name_not_supported_n
call fcn.140001bc0
xor al, al
jmp 0x140002386
mov ecx, 1
lea rdx, [rbp - 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
movzx ecx, byte [rsi]
test cl, cl
je case.0x140002049.0
lea r8, [0x140000000]
movabs r9, 0x2525252525252525
movabs r13, 0xcccccccccccccccd
cmp cl, 0x25
je 0x140002025
mov rdx, qword [rdi + 0x10]
mov r9, qword [rdi + 0x18]
mov rax, r9
sub rax, rdx
cmp rax, 1
jb 0x140002014
lea rax, [rdx + 1]
mov qword [rdi + 0x10], rax
mov r8, rdi
cmp r9, 0x10
jb 0x140001fff
mov r8, qword [rdi]
movsx eax, cl
movzx eax, al
mov byte [r8 + rdx], al
mov byte [r8 + rdx + 1], 0
jmp 0x140002365
mov byte [rsp + 0x20], cl
mov rcx, rdi
call fcn.1400024a0
jmp 0x140002365
inc rsi
movsx rdx, byte [rsi]
cmp edx, 0x75
ja case.0x140002049.2
movzx eax, byte [r8 + rdx + 0x241c]
mov ecx, dword [r8 + rax*4 + 0x23fc]
add rcx, r8
jmp rcx
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14000207e
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140002073
mov rax, qword [rdi]
mov word [rax + rcx], 0x25
jmp 0x140002376
mov byte [rsp + 0x20], 0x25
mov rcx, rdi
call fcn.1400024a0
jmp 0x140002365
lea r9, [rbp + 0x145]
mov r8d, r12d
test r12d, r12d
jns 0x1400020e0
neg r8d
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 0x1400020a2
dec r9
mov byte [r9], 0x2d
jmp 0x14000210a
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 0x1400020e0
lea r8, [rbp + 0x145]
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.140002610
or r15d, 2
mov dword [rsp + 0x30], r15d
and r15d, 0xfffffffd
mov dword [rsp + 0x30], r15d
or r15d, 1
mov dword [rsp + 0x30], r15d
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rcx, rdi
call fcn.140001cb0
and r15d, 0xfffffffe
mov dword [rsp + 0x30], r15d
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14000219d
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002198
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400023b0
call fcn.140002bd0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
jmp 0x140002365
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, qword [rsp + 0x40]
lea r9, [rbp + 0x145]
test rcx, rcx
jns 0x140002220
neg rcx
nop dword [rax]
nop dword [rax + rax]
dec r9
mov rax, r13
mul rcx
shr rdx, 3
movzx eax, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub cl, r8b
add cl, 0x30
mov byte [r9], cl
mov rcx, rdx
test rdx, rdx
jne 0x1400021e0
dec r9
mov byte [r9], 0x2d
jmp 0x14000224b
dec r9
mov rax, r13
mul rcx
shr rdx, 3
movzx eax, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub cl, r8b
add cl, 0x30
mov byte [r9], cl
mov rcx, rdx
test rdx, rdx
jne 0x140002220
lea r8, [rbp + 0x145]
mov rdx, r9
lea rcx, [rsp + 0x68]
call fcn.140002610
or r15d, 8
mov dword [rsp + 0x30], r15d
and r15d, 0xfffffff7
mov dword [rsp + 0x30], r15d
or r15d, 4
mov dword [rsp + 0x30], r15d
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
mov rcx, rdi
call fcn.140001cb0
and r15d, 0xfffffffb
mov dword [rsp + 0x30], r15d
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1400022dc
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400023b7
call fcn.140002bd0
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], 0
jmp 0x140002365
mov ecx, 0x401
call fcn.140002c14
mov rbx, rax
mov qword [rsp + 0x38], rax
mov edx, 0x400
mov rcx, rax
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x1400023be
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x140002320
mov rdx, rbx
mov rcx, rdi
call fcn.140001cb0
nop
mov rcx, rbx
call fcn.140002bd0
xor ebx, ebx
mov qword [rsp + 0x38], rbx
jmp 0x140002365
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [r14 + r8], 0
jne 0x140002350
mov rdx, r14
mov rcx, rdi
call fcn.140001cb0
lea r8, [0x140000000]
movabs r9, 0x2525252525252525
inc rsi
movzx ecx, byte [rsi]
test cl, cl
jne 0x140001fd2
mov al, 1
mov rcx, qword [rbp + 0x148]
xor rcx, rsp
call fcn.140002bb0
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]
int3
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 edx, eax
lea rcx, str.Could_not_get_the_host_name_for_dump_name:__d_n
call fcn.140001bc0
nop
mov rcx, rbx
call fcn.140002bd0
mov qword [rsp + 0x38], 0
xor al, al
jmp 0x140002386
lea rcx, str.Invalid_dump_name_format_char__c_n
call fcn.140001bc0
xor al, al
jmp 0x140002386