Function at 0x140015970
Capabilities:
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 [0x140020008]
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 0x1400159cd
lea rcx, str.Pipe_syntax_in_dump_name_not_supported_n
call fcn.140015590
xor al, al
jmp 0x140015db6
mov ecx, 1
lea rdx, [rbp - 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
movzx ecx, byte [rsi]
test cl, cl
je case.0x140015a79.0
lea r8, [0x140014000]
movabs r9, 0x2525252525252525
movabs r13, 0xcccccccccccccccd
cmp cl, 0x25
je 0x140015a55
mov rdx, qword [rdi + 0x10]
mov r9, qword [rdi + 0x18]
mov rax, r9
sub rax, rdx
cmp rax, 1
jb 0x140015a44
lea rax, [rdx + 1]
mov qword [rdi + 0x10], rax
mov r8, rdi
cmp r9, 0x10
jb 0x140015a2f
mov r8, qword [rdi]
movsx eax, cl
movzx eax, al
mov byte [r8 + rdx], al
mov byte [r8 + rdx + 1], 0
jmp 0x140015d95
mov byte [rsp + 0x20], cl
mov rcx, rdi
call fcn.140015fb0
jmp 0x140015d95
inc rsi
movsx rdx, byte [rsi]
cmp edx, 0x75
ja case.0x140015a79.2
movzx eax, byte [r8 + rdx + 0x1e4c]
mov ecx, dword [r8 + rax*4 + 0x1e2c]
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 0x140015aae
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140015aa3
mov rax, qword [rdi]
mov word [rax + rcx], 0x25
jmp 0x140015da6
mov byte [rsp + 0x20], 0x25
mov rcx, rdi
call fcn.140015fb0
jmp 0x140015d95
lea r9, [rbp + 0x145]
mov r8d, r12d
test r12d, r12d
jns 0x140015b10
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 0x140015ad2
dec r9
mov byte [r9], 0x2d
jmp 0x140015b3a
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 0x140015b10
lea r8, [rbp + 0x145]
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.1400162b0
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.140015f30
and r15d, 0xfffffffe
mov dword [rsp + 0x30], r15d
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140015bcd
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015bc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015de0
call fcn.140016bf0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
jmp 0x140015d95
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 0x140015c50
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 0x140015c10
dec r9
mov byte [r9], 0x2d
jmp 0x140015c7b
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 0x140015c50
lea r8, [rbp + 0x145]
mov rdx, r9
lea rcx, [rsp + 0x68]
call fcn.1400162b0
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.140015f30
and r15d, 0xfffffffb
mov dword [rsp + 0x30], r15d
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140015d0c
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015d07
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015de7
call fcn.140016bf0
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], 0
jmp 0x140015d95
mov ecx, 0x401
call fcn.140016bf8
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 0x140015dee
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x140015d50
mov rdx, rbx
mov rcx, rdi
call fcn.140015f30
nop
mov rcx, rbx
call fcn.140016bf0
xor ebx, ebx
mov qword [rsp + 0x38], rbx
jmp 0x140015d95
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [r14 + r8], 0
jne 0x140015d80
mov rdx, r14
mov rcx, rdi
call fcn.140015f30
lea r8, [0x140014000]
movabs r9, 0x2525252525252525
inc rsi
movzx ecx, byte [rsi]
test cl, cl
jne 0x140015a02
mov al, 1
mov rcx, qword [rbp + 0x148]
xor rcx, rsp
call fcn.140016bd0
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.140015590
nop
mov rcx, rbx
call fcn.140016bf0
mov qword [rsp + 0x38], 0
xor al, al
jmp 0x140015db6
lea rcx, str.Invalid_dump_name_format_char__c_n
call fcn.140015590
xor al, al
jmp 0x140015db6