Function at 0x140153430
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
movaps xmmword [rsp + 0x2d0], xmm6
mov rax, qword [0x1414b0148]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r12, rdx
movsxd r13, ecx
mov ecx, 1
lea rdx, [rbp + 0x20]
call sub.WS2_32.dll_WSAStartup
mov ebx, eax
test eax, eax
je 0x1401534ae
lea rdx, str.WSAStartup_failed_with_error:
lea rcx, [0x1414d37d0]
call fcn.14001da20
mov rcx, rax
mov edx, ebx
call fcn.140004210
mov rcx, rax
call fcn.14001e400
xor eax, eax
jmp 0x1401538b6
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov ecx, 0x80000041
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
lea rdx, [0x1414cfb29]
lea rcx, [0x1414cfb28]
call fcn.1401658c0
lea rbx, [r13*8 - 8]
mov rdx, qword [rbx + r12]
xor esi, esi
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], sil
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rdx + r8], sil
jne 0x140153503
lea rcx, [rbp - 0x60]
call fcn.140002000
nop
lea rcx, [rsp + 0x28]
call fcn.14002ef80
nop
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x40], 0
mov ecx, 0x20
call fcn.1402b8280
mov qword [rbp - 0x30], 0x18
mov qword [rbp - 0x28], 0x1f
movups xmm0, xmmword [str.__watchdog_child_process]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x14039b050]
movsd qword [rax + 0x10], xmm1
mov byte [rax + 0x18], 0
mov qword [rbp - 0x40], rax
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.14016c8c0
movzx r15d, al
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x1401535bd
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401535b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401538ee
call fcn.1402b82bc
test r15b, r15b
je 0x1401535fb
mov qword [rsp + 0x40], rsi
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rcx, qword [rbp - 0x60]
add rcx, 0x18
mov r8d, 0xa
lea rdx, [rsp + 0x40]
call fcn.1402c42e0
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0x2f4], eax
dec r13d
mov qword [r12 + rbx], rsi
movzx r8d, r15b
mov rdx, r12
mov ecx, r13d
call fcn.14014d4f0
test al, al
jne 0x140153618
mov rbx, qword [rsp + 0x30]
jmp 0x140153849
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea rcx, [rsp + 0x68]
call fcn.14002ef80
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x361]
mov byte [rsp + 0x20], al
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140153681
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140153681
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140153681
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov ecx, dword [rsp + 0x24]
mov eax, ecx
or eax, 0xc0
mov r14d, ecx
and r14d, 0xffffffbf
bts r14d, 7
cmp byte [rsp + 0x20], 0
cmovne r14d, eax
cmp r14d, ecx
je 0x1401536b4
mov edx, r14d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ecx, dword [0x1414d3c40]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1414cfb20], ecx
jg 0x1401538f4
mov rax, qword [0x1414cfb18]
test rax, rax
je 0x1401536eb
lock inc dword [rax + 8]
movdqu xmm6, xmmword [0x1414cfb10]
movups xmmword [rsp + 0x58], xmm6
mov rax, qword [rsp + 0x28]
movzx r8d, byte [rax + 0x290]
movzx edx, r15b
movq rcx, xmm6
call fcn.1401183c0
nop
psrldq xmm6, 8
movq rcx, xmm6
test rcx, rcx
je 0x140153753
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140153753
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140153753
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test r15b, r15b
jne 0x14015377d
mov rax, qword [rsp + 0x28]
cmp byte [rax + 0x2d8], r15b
je 0x14015377d
mov rdx, r12
mov ecx, r13d
call fcn.14017e6b0
mov esi, eax
mov rbx, qword [rsp + 0x30]
jmp 0x140153829
lea rcx, [rsp + 0x78]
call fcn.140059db0
nop
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov rcx, qword [rax]
call fcn.14010a780
nop
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x1401537ca
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1401537ca
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1401537ca
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1401537dd
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x30]
lea rax, [0x14039b088]
mov qword [rbp - 0x20], rax
mov byte [rbp - 0x18], r15b
mov rax, qword [rsp + 0x28]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rbx
lea rax, [rbp - 0x20]
mov qword [rbp + 0x18], rax
lea rdx, [rbp - 0x20]
movzx ecx, r15b
call fcn.140107790
mov esi, eax
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140153829
mov rax, qword [rcx]
lea rdx, [rbp - 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov edx, dword [rsp + 0x24]
cmp r14d, edx
je 0x14015383d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ecx, 0x80000000
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
nop
test rbx, rbx
je 0x14015387d
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14015387d
mov rbx, qword [rsp + 0x30]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14015387d
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x1401538b4
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401538af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401538e8
call fcn.1402b82bc
mov eax, esi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1402b83d0
mov rbx, qword [rsp + 0x330]
movaps xmm6, xmmword [rsp + 0x2d0]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1402befbc
nop
call fcn.1402befbc
nop
lea rcx, [0x1414cfb20]
call fcn.1402b87f4
cmp dword [0x1414cfb20], 0xffffffff
jne 0x1401536db
mov ecx, 2
call fcn.1402b8280
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14015392e
mov rcx, rax
call fcn.1401183b0
mov rbx, rax
jmp 0x140153931
mov rbx, rsi
xorps xmm0, xmm0
movdqu xmmword [0x1414cfb10], xmm0
mov qword [rsp + 0x48], rbx
mov ecx, 0x18
call fcn.1402b8280
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140153979
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rcx, [0x140399018]
mov qword [rax], rcx
mov qword [rax + 0x10], rbx
jmp 0x14015397c
mov rax, rsi
mov qword [0x1414cfb10], rbx
mov qword [0x1414cfb18], rax
mov edx, 2
xor ecx, ecx
call fcn.1402b82bc
lea rcx, [0x1402f8fc0]
call fcn.1402b8654
nop
lea rcx, [0x1414cfb20]
call fcn.1402b8794
jmp 0x1401536db