Function at 0x10009e70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1003c2e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x50], ecx
push str.CTcpSocket::Connect
push 0x10037cf4
call fcn.10009c20
add esp, 8
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
mov edx, dword [ebp - 0x50]
add edx, 0x18
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x14], eax
xor edx, edx
mov eax, dword [ebp - 0x50]
add eax, 0x20
mov dword [eax], edx
mov dword [eax + 4], edx
mov word [eax + 8], dx
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x20], eax
mov edx, dword [edx + 0x18]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x28], 0xca
mov ecx, dword [ebp - 0x50]
mov byte [ecx + 0x29], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x64], 0xffffffff
jne 0x10009f10
xor al, al
jmp 0x1000a115
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, 1
push eax
call fcn.1000faf1
add esp, 4
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x2c], ecx
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x28]
mov byte [eax], 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.1000fafc
add esp, 4
cmp dword [ebp - 0xc], 0
jne 0x10009fad
xor al, al
jmp 0x1000a115
mov ecx, 2
mov word [ebp - 0x20], cx
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
push 0x10
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10009ff1
xor al, al
jmp 0x1000a115
mov dword [ebp - 0x24], 0x40000
push 4
lea ecx, [ebp - 0x24]
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x24], 0x40000
push 4
lea ecx, [ebp - 0x24]
push ecx
push 0x1002
push 0xffff
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 8], 0x7530
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1006
push 0xffff
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x30], 1
push 4
lea ecx, [ebp - 0x30]
push ecx
push 8
push 0xffff
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1000a0bb
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x2bf20
mov dword [ebp - 0x3c], 0x1388
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x44]
push edx
push 0x98000004
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x64]
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
mov edx, dword [ebp - 0x50]
add edx, 0x18
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp - 0x50]
push ecx
push 0x1000a130
push 0
push 0
call fcn.10010aaf
add esp, 0x18
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x5c], eax
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0x50]
push ecx
push 0x1000a340
push 0
push 0
call fcn.10010aaf
add esp, 0x18
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x60], eax
mov al, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000fb07
mov esp, ebp
pop ebp
ret 8