Function at 0x100149e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1006fc16
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x1008ab54]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008ab54]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
xor ebx, ebx
push 0x7e
lea eax, [esp + 0x1fa]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], ebx
mov word [esp + 0x200], bx
call fcn.1004b150
xor eax, eax
add esp, 0xc
mov ecx, esi
mov word [esp + 0x1d4], bx
mov dword [esp + 0x1d6], eax
mov dword [esp + 0x1da], eax
mov dword [esp + 0x1de], eax
mov dword [esp + 0x1e2], eax
mov dword [esp + 0x1e6], eax
mov dword [esp + 0x1ea], eax
mov dword [esp + 0x1ee], eax
mov word [esp + 0x1f2], ax
call fcn.10002060
lea ecx, [esp + 0x44]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
je 0x10014ab2
push eax
push str.WSAStartup_failed_with_error__d_n
call fcn.1005d8b7
add esp, 8
xor eax, eax
jmp 0x10014cb8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10014adf
push str.Create_socket_failed_
call fcn.1005d8b7
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x10014cb8
lea edx, [esp + 0x1d4]
push edx
lea eax, [esp + 0x1f8]
push eax
call fcn.10014700
add esp, 8
cmp eax, ebx
je 0x10014bdc
lea ecx, [esp + 0x1d4]
push ecx
lea ecx, [esp + 0x20]
call fcn.10012a90
mov esi, eax
lea edx, [esp + 0x1f4]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x284], ebx
call fcn.10012a90
mov edi, eax
mov byte [esp + 0x280], 1
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x10014b4a
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.10001a90
mov eax, dword [edi]
mov esi, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x10014b62
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.10001a90
mov edi, dword [edi]
push esi
call fcn.10049c58
movzx eax, ax
add esp, 4
cmp ax, bx
jne 0x10014b79
xor esi, esi
jmp 0x10014b88
push edi
lea esi, [esp + 0x28]
call fcn.100145c0
add esp, 4
mov esi, eax
mov byte [esp + 0x280], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10014baf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x280], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10014c04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10014c04
push 0x10079cbc
call fcn.10049c58
movzx eax, ax
add esp, 4
cmp ax, bx
je 0x10014c08
push str.baidu.com
lea esi, [esp + 0x28]
call fcn.100145c0
add esp, 4
mov esi, eax
cmp esi, ebx
jne 0x10014c29
push str.Construct_Sockaddr_error_
call fcn.1005d8b7
add esp, 4
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x10014cb8
push 0x10
lea ecx, [esp + 0x28]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10014c49
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.Connect_to_remote_failed_
jmp 0x10014c0d
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push eax
push ebp
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x10014c74
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.getsockname_failed_
jmp 0x10014c0d
mov eax, dword [esp + 0x38]
mov ecx, eax
shr ecx, 0x18
push ecx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
movzx edx, al
mov eax, dword [esp + 0x28]
push ecx
push edx
push str._d._d._d._d
push eax
call fcn.10012ec0
add esp, 0x18
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.10048e2f
add esp, 0x270
ret