Function at 0x4190d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470c78
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x4915c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x240], esi
xor edi, edi
mov dword [ebp - 4], edi
call dword [0x49297c]
push edi
push 0x47b6d0
mov ecx, esi
mov dword [ebp - 0x238], eax
call fcn.00403590
push edi
push 1
push 2
mov dword [ebp - 0x23c], edi
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x419167
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4194c5
xor eax, eax
lea ecx, [ebp + 0xc]
push 0x47b6d0
mov dword [ebp - 0x228], eax
push ecx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov word [ebp - 0x228], 2
call fcn.004023c0
add esp, 8
test al, al
je 0x419200
mov esi, dword [ebx + 0x74]
test esi, esi
jne 0x4191aa
xor eax, eax
jmp 0x4191e0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x4191bf
xor eax, eax
jmp 0x4191e0
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0045a170
mov edx, dword [ebp - 0x238]
mov eax, esp
push edx
push ebx
push esi
push eax
call fcn.00403150
mov ebx, dword [ebp - 0x234]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x224], eax
movzx eax, word [ebx + 0x4b8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [ebp + 0xc]
jmp 0x419250
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x41920b
xor eax, eax
jmp 0x41923b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x419220
xor eax, eax
jmp 0x41923b
lea esi, [eax + eax]
mov eax, esi
call fcn.0045a170
mov ecx, dword [ebp - 0x238]
mov eax, esp
push ecx
push esi
push ebx
push eax
call fcn.00403150
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x50
mov dword [ebp - 0x224], eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea edx, [ebp - 0x230]
push edx
push 0x8004667e
push edi
mov word [ebp - 0x226], ax
mov dword [ebp - 0x230], 1
call esi
push 0x10
lea eax, [ebp - 0x228]
push eax
push edi
mov dword [ebp - 0x24c], 0x14
mov dword [ebp - 0x248], 0
call dword [sym.imp.WS2_32.dll_connect]
mov eax, 1
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x358]
push edx
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x358], eax
lea eax, [ebp - 0x460]
push eax
push 0
push edi
mov dword [ebp - 0x45c], edi
mov dword [ebp - 0x354], edi
call dword [sym.imp.WS2_32.dll_select]
lea ecx, [ebp - 0x460]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x419497
lea edx, [ebp - 0x358]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x419497
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x230]
push ecx
push 0x8004667e
push edi
mov dword [eax + 0x498], 1
mov dword [ebp - 0x230], 0
call esi
push 4
lea edx, [ebp - 0x244]
push edx
push 0x1006
push 0xffff
push edi
mov dword [ebp - 0x244], 0x4e20
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x200
lea eax, [ebp - 0x217]
push 0
push eax
mov byte [ebp - 0x218], 0
call fcn.00457910
mov ecx, dword [ebp - 0x22c]
mov esi, dword [ecx]
add esp, 0xc
test esi, esi
je 0x4193c2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x4193c2
add eax, eax
mov dword [ebp - 0x22c], eax
call fcn.0045a170
mov ebx, esp
test ebx, ebx
je 0x4193c2
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x238]
push 0
push 0
push edx
push ebx
push 0xffffffffffffffff
push esi
push 0
push eax
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x4193c4
xor eax, eax
push eax
lea ecx, [ebp - 0x218]
push 0x47ea10
push ecx
call fcn.0045673e
lea eax, [ebp - 0x218]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4193e2
push 0
sub eax, edx
push eax
lea edx, [ebp - 0x218]
push edx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov edi, edi
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00457910
add esp, 0xc
push 0
push 0x200
lea ecx, [ebp - 0x218]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x41944d
mov esi, dword [ebp - 0x240]
lea edx, [ebp - 0x218]
push edx
mov byte [ebp + ebx - 0x218], 0
call fcn.00423940
jmp 0x419452
cmp ebx, 0xffffffff
je 0x419458
test ebx, ebx
jg 0x419400
jmp 0x419462
mov dword [ebp - 0x23c], 0xffffffff
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41948f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x23c]
jmp 0x4194d4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x234]
lea eax, [ebx - 0x10]
mov dword [ecx + 0x498], 0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4194d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
lea esp, [ebp - 0x470]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455843
mov esp, ebp
pop ebp
ret 8