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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], ecx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0xffffffff
mov ecx, dword [ebp + 0x46c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp + 0x470], 0
jne 0x4d275b
jmp 0x4d2857
mov edx, 2
mov word [ebp - 0x14], dx
movzx eax, word [ebp - 0x48]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
cmp dword [ebp + 0x514], 0
jne 0x4d2785
mov dword [ebp - 0x30], 0
jmp 0x4d278e
lea ecx, [ebp + 0x4c8]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
je 0x4d27a6
mov edx, dword [ebp - 0x30]
movzx eax, word [edx + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov ecx, dword [ebp + 0x470]
mov dword [ebp - 0x10], ecx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x2c], eax
push 0x30
push 0x7e8
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4d2849
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x4d2839
push 0
push 0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
push 2
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], 0
jmp 0x4d2847
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 1
jmp 0x4d2857
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x38], 0
jne 0x4d29db
cmp dword [ebp + 0x54c], 0
jne 0x4d2875
call fcn.004d5780
mov dword [ebp + 0x54c], eax
push 0x1ac
call fcn.006135e5
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x4d2898
mov ecx, dword [ebp - 0x40]
call fcn.004d8610
mov dword [ebp - 0x44], eax
jmp 0x4d289f
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x64]
call fcn.004ce940
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0x544]
mov dword [ecx + 0x74], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x548]
mov dword [eax + 0x54], ecx
lea ecx, [ebp + 0x53c]
call fcn.0040d3c0
push eax
lea ecx, [ebp - 0x64]
call fcn.004ceb90
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x20
call fcn.00421e60
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x540]
mov dword [edx + 0x16c], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x48]
mov dword [ecx + 0x38], edx
lea eax, [ebp + 0x40c]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x3c
call fcn.0047b020
lea ecx, [ebp + 0x424]
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0x7c
call fcn.0047b020
lea edx, [ebp + 0x48c]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.0047b020
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x180], 8
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0x70], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x54c]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x554]
mov dword [edx + 0x174], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0x550]
mov dword [ecx + 0x184], edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.004d9270
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x34]
add ecx, 0xf8
call fcn.004d8e60
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
lea eax, [ebp + 0x54c]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x34
call fcn.004d8e60
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x34]
add ecx, 0x108
call fcn.004d8e60
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x188], eax
lea ecx, [ebp - 0x64]
call fcn.004ce990
jmp 0x4d2a26
cmp dword [ebp + 0x550], 0
je 0x4d29f7
push 2
push 0
mov edx, dword [ebp + 0x554]
push edx
call dword [ebp + 0x550]
jmp 0x4d2a26
cmp dword [ebp + 0x544], 0
je 0x4d2a26
cmp dword [ebp + 0x54c], 0
je 0x4d2a26
push 2
mov eax, dword [ebp + 0x54c]
push eax
mov ecx, dword [ebp + 0x548]
push ecx
mov edx, dword [ebp + 0x544]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp + 8]
call fcn.004d8bb0
lea ecx, [ebp + 0x53c]
call fcn.00413870
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret 0x550