Function at 0x1000c3d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push 0xffffffffffffffff
push 0x10016778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x44], 0
call fcn.10008570
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push edi
push eax
lea ecx, [esp + 0x1c]
push str.CSocketManReverse::Connect_connect_s__d
push ecx
mov dword [esp + 0x24], 0x1001e950
mov dword [esp + 0x28], 0x12b
mov dword [esp + 0x2c], 0x100
call fcn.10006230
mov edx, dword [esp + 0x5c]
add esp, 0x10
mov eax, dword [edx - 8]
test eax, eax
je 0x1000c637
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push 6
push 1
push 2
mov ebp, eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x44], eax
jne 0x1000c4bc
mov eax, dword [esp + 0x4c]
push edi
push eax
mov dword [esp + 0x1c], 0x1001e950
mov dword [esp + 0x20], 0x137
mov dword [esp + 0x24], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x20]
push str.CSocketManReverse::Connect_Create_Socket_Failed._Error___d__s__d
push ecx
call fcn.10006230
add esp, 0x14
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 8
xor edx, edx
push edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x54], 0
mov dword [esp + 0x34], edx
mov word [esp + 0x30], 2
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
jne 0x1000c5ca
mov eax, dword [0x1001fd50]
mov edi, dword [esp + 0x4c]
test eax, eax
jne 0x1000c519
push eax
call fcn.1000c750
mov dword [0x1001fd50], eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edi
call eax
mov edi, eax
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test edi, edi
jne 0x1000c57c
mov edi, dword [esp + 0x10]
test edi, edi
je 0x1000c57c
mov ebx, dword [sym.imp.WS2_32.dll_connect]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1000c575
mov edx, dword [eax + 4]
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x44]
mov ebp, eax
lea eax, [esp + 0x2c]
push 0x10
push eax
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x1000c59d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2747
je 0x1000c5a7
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x1000c540
mov eax, dword [0x1001fd4c]
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x1000c595
push 2
call fcn.1000c750
mov dword [0x1001fd4c], eax
push edi
call eax
jmp 0x1000c6cb
mov dword [esp + 0x50], 1
jmp 0x1000c57c
mov dword [esp + 0x14], 0x1001e950
mov dword [esp + 0x18], 0x15d
mov dword [esp + 0x1c], 0x10
push str.CSocketManReverse::Connect_WSAENOBUFS
lea edx, [esp + 0x18]
jmp 0x1000c621
call ebx
mov ecx, dword [esi + 0x44]
mov ebp, eax
lea eax, [esp + 0x2c]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1000c5f1
mov dword [esp + 0x50], 1
jmp 0x1000c6d9
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2747
jne 0x1000c65f
mov dword [esp + 0x14], 0x1001e950
mov dword [esp + 0x18], 0x175
mov dword [esp + 0x1c], 0x10
push str.CSocketManReverse::Connect_WSAENOBUFS
lea edx, [esp + 0x18]
push edx
call fcn.10006230
mov ecx, dword [esi + 0x40]
add esp, 8
push 0x32c8
call fcn.100075c0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 8
mov eax, dword [esp + 0x4c]
push edi
push eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x1c], 0x1001e950
mov dword [esp + 0x20], 0x17c
mov dword [esp + 0x24], 0x100
call ebx
push eax
lea ecx, [esp + 0x20]
push str.CSocketManReverse::Connect_connect_Failed_Err___d__s__d
push ecx
call fcn.10006230
add esp, 0x14
mov ecx, esi
call fcn.10008570
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 8
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1000c69a
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, ebp
mov ecx, esi
mov dword [esi + 0x68], eax
call fcn.1000e570
test eax, eax
jne 0x1000c6a1
lea edx, [esp + 0x20]
push str.CSocketManReverse::Connect_Send_Login_Packet_Failed.
push edx
mov dword [esp + 0x28], 0x1001e950
mov dword [esp + 0x2c], 0x186
mov dword [esp + 0x30], 0x100
call fcn.10006230
add esp, 8
mov ecx, esi
call fcn.10008570
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 8