Function at 0x140230e20
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 - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x144dd9080]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r14, rdx
mov qword [rsp + 0x40], rdx
movsxd r13, ecx
xor esi, esi
lea ecx, [rsi + 1]
lea rdx, [rbp + 0x20]
call sub.WS2_32.dll_WSAStartup
mov ebx, eax
test eax, eax
je 0x140230e9b
lea rdx, str.WSAStartup_failed_with_error:
lea rcx, [0x144e0dd50]
call fcn.140026580
mov rcx, rax
mov edx, ebx
call fcn.140004da0
mov rcx, rax
call fcn.14002ba50
xor eax, eax
jmp 0x140231298
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov ecx, 0x80000041
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
lea rdx, [0x144e0a065]
lea rcx, [0x144e0a064]
call fcn.1402477b0
lea rbx, [r14 + r13*8]
mov rdx, qword [rbx - 8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rdx + r8], sil
jne 0x140230ee5
lea rcx, [rbp - 0x48]
call fcn.140001680
nop
lea rcx, [rsp + 0x28]
call fcn.140039310
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov ecx, 0x20
call fcn.140397c8c
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x58], 0x18
mov qword [rbp - 0x50], 0x1f
movups xmm0, xmmword [str.__watchdog_child_process]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140517c28]
movsd qword [rax + 0x10], xmm0
mov byte [rax + 0x18], 0
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x48]
call fcn.14024f040
movzx r15d, al
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140230f9e
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140230f99
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1402312c8
call fcn.140397cc8
test r15b, r15b
je 0x140230fde
mov qword [rsp + 0x38], rsi
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rcx, qword [rbp - 0x48]
add rcx, 0x18
mov r8d, 0xa
lea rdx, [rsp + 0x38]
call fcn.1403a654c
mov ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x444], ecx
dec r13d
mov qword [rbx - 8], rsi
movzx r8d, r15b
mov rdx, r14
mov ecx, r13d
call fcn.140229960
test al, al
jne 0x140230ffb
mov rbx, qword [rsp + 0x30]
jmp 0x14023122b
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r12, rax
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea rcx, [rsp + 0x60]
call fcn.140039310
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x4b1]
mov byte [rsp + 0x20], al
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140231062
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140231062
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140231062
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 0x140231093
mov edx, r14d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ecx, dword [0x144e0e060]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x144e0a038], ecx
jg 0x1402312ce
mov rbx, qword [0x144e0a030]
test rbx, rbx
je 0x1402310d1
lock inc dword [rbx + 8]
mov rbx, qword [0x144e0a030]
mov rcx, qword [0x144e0a028]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rbx
mov r8, qword [rsp + 0x28]
movzx r8d, byte [r8 + 0x3e0]
movzx edx, r15b
call fcn.1401ec690
nop
test rbx, rbx
je 0x140231127
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140231127
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140231127
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test r15b, r15b
jne 0x140231153
mov rax, qword [rsp + 0x28]
cmp byte [rax + 0x428], r15b
je 0x140231153
mov rdx, qword [rsp + 0x40]
mov ecx, r13d
call fcn.14025e220
mov esi, eax
mov rbx, qword [rsp + 0x30]
jmp 0x14023120d
lea rcx, [rsp + 0x40]
call fcn.14007ee50
nop
mov rdx, qword [rsp + 0x28]
mov edx, dword [rdx]
mov rcx, qword [rax]
call fcn.1401d5240
nop
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1402311a1
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1402311a1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1402311a1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov byte [rbp - 0x80], r15b
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1402311b8
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x30]
lea rax, [0x140517c60]
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
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
lea rax, [rbp - 0x20]
mov qword [rbp + 0x18], rax
lea rdx, [rbp - 0x20]
movzx ecx, r15b
call fcn.1401d1f60
mov esi, eax
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14023120d
mov rax, qword [rcx]
lea rdx, [rbp - 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov edx, dword [rsp + 0x24]
cmp r14d, edx
je 0x14023121f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ecx, 0x80000000
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
nop
test rbx, rbx
je 0x14023125f
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14023125f
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 0x14023125f
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140231296
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140231291
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1402312c2
call fcn.140397cc8
mov eax, esi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140397de0
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14039f1cc
nop
call fcn.14039f1cc
nop
lea rcx, [0x144e0a038]
call fcn.140398114
cmp dword [0x144e0a038], 0xffffffff
jne 0x1402310ba
mov ecx, 2
call fcn.140397c8c
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140231308
mov rcx, rax
call fcn.1401ec680
mov rbx, rax
jmp 0x14023130b
mov rbx, rsi
xorps xmm0, xmm0
movdqu xmmword [0x144e0a028], xmm0
mov qword [rsp + 0x50], rbx
mov ecx, 0x18
call fcn.140397c8c
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140231353
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rcx, [0x140514a20]
mov qword [rax], rcx
mov qword [rax + 0x10], rbx
jmp 0x140231356
mov rax, rsi
mov qword [0x144e0a028], rbx
mov qword [0x144e0a030], rax
mov edx, 2
xor ecx, ecx
call fcn.140397cc8
lea rcx, [0x1403dde10]
call fcn.140398054
nop
lea rcx, [0x144e0a038]
call fcn.1403980a8
jmp 0x1402310ba