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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1044], ebx
mov dword [ebp - 0x103c], ebx
mov dword [ebp - 0x1040], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404b78
lea esi, [ebp - 0x14]
xor eax, eax
push ebp
push 0x4b4457
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, edi
call fcn.00404988
cmp eax, 3
jl 0x4b4424
mov eax, dword [ebp - 4]
call fcn.004096d4
test al, al
je 0x4b4006
mov eax, dword [ebp - 4]
call fcn.004097d8
mov eax, dword [ebp - 4]
call fcn.004096d4
test al, al
je 0x4b4050
call fcn.0040b124
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x1040]
mov eax, 0x4b4470
call fcn.0040bd70
mov ecx, dword [ebp - 0x1040]
lea eax, [ebp - 0x103c]
mov edx, dword [ebp - 4]
call fcn.004049d4
mov edx, dword [ebp - 0x103c]
mov eax, dword [ebp - 4]
call fcn.004097f0
mov eax, dword [ebp - 4]
call fcn.004096d4
test al, al
jne 0x4b4424
mov eax, dword [ebp - 4]
call fcn.004095a8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x4b4424
lea eax, [ebp - 0x1038]
xor ecx, ecx
mov edx, 0x1000
call fcn.00403114
call fcn.004b3910
mov ecx, edi
mov dl, 1
mov eax, dword [0x47c1a0]
call fcn.0047c254
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b441d
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4b40c9
call fcn.0040412c
jmp 0x4b4424
mov word [ebp - 0x38], 2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
call fcn.004b3c0c
test al, al
je 0x4b40ee
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x18]
call fcn.00404760
jmp 0x4b410a
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
call fcn.004b3aa8
test al, al
jne 0x4b410a
call fcn.0040412c
jmp 0x4b4424
mov eax, dword [ebp - 0x20]
call fcn.00404b88
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov edx, 0x50
call fcn.00409344
push eax
call sub.wsock32.dll_ntohs
mov word [ebp - 0x36], ax
push 0x10
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_connect
inc eax
jne 0x4b4158
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
call fcn.0040412c
jmp 0x4b4424
push 0x4b448c
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x28]
push 0x4b449c
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00404a48
lea eax, [ebp - 0x20]
mov edx, 0x4b44b0
call fcn.00404990
lea eax, [ebp - 0x20]
mov edx, 0x4b44c8
call fcn.00404990
lea eax, [ebp - 0x20]
mov edx, 0x4b44ec
call fcn.00404990
push dword [ebp - 0x20]
push 0x4b4510
mov eax, dword [ebp - 0xc]
push dword [eax + 0x18]
push 0x4b4520
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404a48
lea eax, [ebp - 0x20]
mov edx, 0x4b4520
call fcn.00404990
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004b398c
test al, al
jne 0x4b41f5
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
call fcn.0040412c
jmp 0x4b4424
mov dword [esi], 0x1000
lea eax, [ebp - 0x24]
call fcn.004046c8
jmp 0x4b425c
mov dword [esi], 0x1000
mov ecx, esi
lea edx, [ebp - 0x1038]
lea eax, [ebp - 0x10]
call fcn.004b3a6c
test al, al
jne 0x4b4230
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
call fcn.0040412c
jmp 0x4b4424
lea eax, [ebp - 0x20]
mov edx, dword [esi]
call fcn.00404d14
lea eax, [ebp - 0x20]
call fcn.00404be0
mov edx, eax
lea eax, [ebp - 0x1038]
mov ecx, dword [esi]
call fcn.004029e0
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.00404990
mov edx, dword [ebp - 0x24]
mov eax, 0x4b452c
call fcn.00404ccc
test eax, eax
jle 0x4b4205
mov edx, dword [ebp - 0x24]
mov eax, 0x4b452c
call fcn.00404ccc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1044]
push eax
mov ecx, dword [ebp - 0x1c]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.00404be8
mov eax, dword [ebp - 0x1044]
lea edx, [ebp - 0x18]
call fcn.004b3da8
dec eax
je 0x4b42b2
dec eax
je 0x4b435e
jmp 0x4b43eb
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404988
mov ecx, eax
sub ecx, dword [ebp - 0x1c]
sub ecx, 3
mov edx, dword [ebp - 0x1c]
add edx, 4
mov eax, dword [ebp - 0x24]
call fcn.00404be8
mov eax, dword [ebp - 0x24]
call fcn.00404988
mov edx, dword [ebp - 0x18]
sub edx, eax
mov dword [esi], edx
mov eax, dword [ebp - 0x24]
call fcn.00404988
push eax
lea eax, [ebp - 0x24]
call fcn.00404be0
mov edx, eax
mov eax, dword [ebp - 0x28]
pop ecx
call fcn.00409600
cmp dword [esi], 0
jle 0x4b4352
mov dword [ebp - 0x1c], 0x1000
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x1038]
lea eax, [ebp - 0x10]
call fcn.004b3a6c
test al, al
jne 0x4b4331
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
call fcn.0040412c
jmp 0x4b4424
cmp dword [ebp - 0x1c], 0
jle 0x4b4352
lea edx, [ebp - 0x1038]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
call fcn.00409600
mov eax, dword [ebp - 0x1c]
sub dword [esi], eax
cmp dword [esi], 0
jg 0x4b4304
cmp dword [esi], 0
sete byte [ebp - 5]
jmp 0x4b43eb
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404988
mov ecx, eax
sub ecx, dword [ebp - 0x1c]
sub ecx, 3
mov edx, dword [ebp - 0x1c]
add edx, 4
mov eax, dword [ebp - 0x24]
call fcn.00404be8
mov eax, dword [ebp - 0x24]
call fcn.00404988
mov edx, dword [ebp - 0x18]
sub edx, eax
mov dword [esi], edx
mov eax, dword [ebp - 0x24]
call fcn.00404988
push eax
lea eax, [ebp - 0x24]
call fcn.00404be0
mov edx, eax
mov eax, dword [ebp - 0x28]
pop ecx
call fcn.00409600
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x1038]
lea eax, [ebp - 0x10]
call fcn.004b3a6c
test al, al
jne 0x4b43ce
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
call fcn.0040412c
jmp 0x4b4424
cmp dword [ebp - 0x1c], 0
jle 0x4b43e7
lea edx, [ebp - 0x1038]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
call fcn.00409600
jmp 0x4b43ab
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4424
cmp dword [ebp - 0x10], 0xffffffff
je 0x4b4407
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_closesocket
lea eax, [ebp - 0xc]
call fcn.0040eabc
call fcn.004b3928
mov eax, dword [ebp - 0x28]
call fcn.00409664
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b445e
lea eax, [ebp - 0x1044]
mov edx, 3
call fcn.004046ec
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004046ec
lea eax, [ebp - 4]
call fcn.004046c8
ret