Function at 0x44db70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1991
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4e96d0]
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 dword [ebp - 0x234], ecx
mov edi, dword [ebp + 8]
xor bl, bl
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
mov dword [ebp - 0x244], esi
cmp esi, 0xffffffff
jne 0x44dc64
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x234]
call fcn.0041e920
mov dword [ebp - 4], 0
or esi, esi
mov ecx, dword [eax]
mov ebx, dword [edi]
sub ebx, 0x10
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x44dc39
cmp dword [ebx + 0xc], 0
jl 0x44dc2e
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x44dc2e
push edx
call fcn.0041a940
mov dword [ebp - 0x238], eax
lea ecx, [ebx + 0xc]
add esp, 4
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x44dc21
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x238]
add eax, 0x10
mov dword [edi], eax
jmp 0x44dc39
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00419800
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x44dc5d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x44deea
mov eax, 2
push 0x1bd
mov word [ebp - 0x20], ax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x24c], 1
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24c]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x44dd4c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x238]
call fcn.0041e920
mov dword [ebp - 4], 1
or esi, 0xffffffff
mov ecx, dword [eax]
mov ebx, dword [edi]
sub ebx, 0x10
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x44dd21
cmp dword [ebx + 0xc], 0
jl 0x44dd16
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x44dd16
push edx
call fcn.0041a940
mov dword [ebp - 0x234], eax
lea ecx, [ebx + 0xc]
add esp, 4
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x44dd09
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x234]
add eax, 0x10
mov dword [edi], eax
jmp 0x44dd21
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00419800
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x44dd45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x44dede
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x44dede
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 5
push eax
push 0
lea eax, [ebp - 0x128]
mov dword [ebp - 0x250], 0
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x22c], esi
push eax
push 0
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], 1
call dword [sym.imp.WSOCK32.dll_select]
mov dword [ebp - 0x238], eax
cmp eax, 0xffffffff
jne 0x44ded9
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x23c]
call fcn.0041e920
mov dword [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [eax]
mov eax, dword [edi]
sub eax, 0x10
mov dword [ebp - 0x248], eax
lea ebx, [edx - 0x10]
cmp ebx, eax
je 0x44deaf
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0x240], ecx
jl 0x44dea4
mov ecx, dword [ebx]
cmp ecx, dword [eax]
jne 0x44dea4
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
mov ecx, eax
jl 0x44de35
cmp ecx, dword [ebx]
jne 0x44de35
mov eax, 1
lock xadd dword [edx], eax
jmp 0x44de7e
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x234], edx
test edx, edx
jne 0x44de4f
call fcn.0041a840
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ebx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.00473d46
mov ebx, dword [ebp - 0x234]
add esp, 0x10
mov ecx, dword [ebp - 0x240]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x44de9d
mov edx, dword [ebp - 0x248]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 0x10]
mov dword [edi], eax
jmp 0x44deaf
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00419800
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x44ded3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x238]
test eax, eax
setne bl
push dword [ebp - 0x244]
call dword [sym.imp.WSOCK32.dll_closesocket]
mov al, bl
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.004712e4
mov esp, ebp
pop ebp
ret