Function at 0x140001240
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rbp + 0x100], rax
xor r15d, r15d
lea rdx, [rsp + 0x60]
lea ecx, [r15 + 2]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edx, [r15 + 1]
lea r8d, [r15 + 6]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, str.mswsock.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ecx, ecx
mov r12, rax
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
movzx r10d, word [rdx + 0x14]
movzx r9d, word [rdx + 6]
add r10, rdx
lea r8, [r10 + 0x18]
test r9d, r9d
je 0x1400012e8
nop word [rax + rax]
cmp dword [r8], 0x7461642e
je 0x1400014f0
inc ecx
add r8, 0x28
cmp ecx, r9d
jb 0x1400012d0
mov r14d, dword [rsp + 0x20]
xor esi, esi
test r14d, r14d
je 0x140001519
mov qword [rsp + 0x230], rbx
mov rbx, r15
mov qword [rsp + 0x238], rdi
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rdi, [rbx + 8]
cmp rcx, qword [rdi]
jne 0x1400014a8
test rcx, rcx
je 0x140001356
mov r8d, 0x30
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x30
jne 0x140001356
cmp dword [rsp + 0x48], 0x1000
jne 0x140001356
cmp dword [rsp + 0x50], 0x20000
jne 0x140001356
cmp dword [rsp + 0x4c], 4
je 0x1400013a3
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400014a8
mov r8d, 0x30
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x30
jne 0x1400014a8
cmp dword [rsp + 0x48], 0x1000
jne 0x1400014a8
cmp dword [rsp + 0x50], 0x20000
jne 0x1400014a8
cmp dword [rsp + 0x4c], 4
jne 0x1400014a8
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400014a8
mov r8d, 0x30
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x30
jne 0x1400014a8
cmp dword [rsp + 0x48], 0x1000
jne 0x1400014a8
cmp dword [rsp + 0x50], 0x20000
jne 0x1400014a8
cmp dword [rsp + 0x4c], 4
jne 0x1400014a8
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400014a8
mov r8d, eax
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x30
jne 0x1400014a8
cmp dword [rsp + 0x48], 0x1000
jne 0x1400014a8
cmp dword [rsp + 0x50], 0x1000000
jne 0x1400014a8
cmp dword [rsp + 0x4c], 0x20
jne 0x1400014a8
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400014a8
mov r8d, eax
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x30
jne 0x1400014a8
cmp dword [rsp + 0x48], 0x1000
jne 0x1400014a8
cmp dword [rsp + 0x50], 0x1000000
jne 0x1400014a8
cmp dword [rsp + 0x4c], 0x20
jne 0x1400014a8
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x1400014a8
mov r8d, eax
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x30
jne 0x1400014a8
cmp dword [rsp + 0x48], 0x1000
jne 0x1400014a8
cmp dword [rsp + 0x50], 0x1000000
jne 0x1400014a8
cmp dword [rsp + 0x4c], 0x20
je 0x14000150a
inc esi
mov rbx, rdi
cmp esi, r14d
jb 0x140001310
xor eax, eax
mov rbx, qword [rsp + 0x230]
mov rdi, qword [rsp + 0x238]
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140002560
lea r11, [rsp + 0x210]
mov rsi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rcx, [rcx + rcx*4]
mov r15d, dword [r10 + rcx*8 + 0x24]
mov r14d, dword [r10 + rcx*8 + 0x20]
add r15, r12
shr r14d, 3
jmp 0x1400012ed
lea eax, [rsi*8]
sub eax, r12d
add eax, r15d
jmp 0x1400014b8
xor eax, eax
jmp 0x1400014c8