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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x62815c], 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
jne 0x4608b4
cmp dword [0x610ae0], 1
je 0x4608ac
push 0
call fcn.0045bc5c
pop ecx
jmp 0x4608b4
or eax, 0xffffffff
jmp 0x460bc7
cmp dword [0x62815c], 0
jne 0x4608c5
or eax, 0xffffffff
jmp 0x460bc7
push 0
call fcn.004606f4
pop ecx
cmp ebx, 0xffffffff
jne 0x4608de
push 0x2711
call sub.WSOCK32.DLL_htons
jmp 0x4608e4
push ebx
call sub.WSOCK32.DLL_htons
movzx edx, ax
mov dword [ebp - 4], edx
mov eax, dword [0x628140]
jmp 0x46091a
mov ebx, dword [eax + 4]
cmp dword [ebx], 1
jne 0x460917
mov edx, dword [ebx + 0x5c]
cmp edx, dword [ebp + 8]
jne 0x460917
mov ecx, dword [ebx + 0x60]
cmp ecx, dword [ebp - 4]
jne 0x460917
cmp dword [ebx + 8], 1
jne 0x460917
mov eax, dword [ebx + 0x64]
jmp 0x460bc7
mov eax, dword [eax + 0xc]
cmp dword [eax + 0xc], 0
jne 0x4608f1
xor esi, esi
mov eax, 0x624130
jmp 0x46092d
inc esi
add eax, 4
cmp esi, 0x1000
je 0x46093a
cmp dword [eax], 0
jne 0x460929
cmp esi, 0x1000
jne 0x460952
push 0x5f1245
call fcn.0045bc3c
pop ecx
jmp 0x460bc7
push 0
push 0x5f1261
push 0x74
call fcn.0045e2c4
add esp, 0xc
mov dword [esi*4 + 0x624130], eax
mov ebx, eax
test ebx, ebx
jne 0x460980
push 0x5f1262
call fcn.0045bc3c
pop ecx
jmp 0x460bc7
push 0x74
push 0
push ebx
call fcn.0045ea68
xor eax, eax
xor edx, edx
mov dword [ebx + 4], eax
mov dword [ebx], 1
mov dword [ebx + 8], edx
xor ecx, ecx
mov dword [ebx + 0xc], ecx
xor eax, eax
mov dword [ebx + 0x10], 1
mov dword [ebx + 0x14], eax
add esp, 0xc
cmp dword [0x628174], 0
sete dl
and edx, 1
mov dword [ebx + 0x18], edx
cmp dword [0x628178], 0
sete cl
and ecx, 1
mov dword [ebx + 0x1c], ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5c], eax
lea eax, [ebx + 0x64]
mov edx, dword [ebp - 4]
mov dword [ebx + 0x60], edx
push ebx
mov ecx, dword [0x628158]
shl ecx, 0x10
or ecx, esi
or ecx, 0x48000000
push ecx
push eax
push 0x628134
call fcn.00461fe4
add esp, 0x10
cmp dword [ebx + 0x18], 1
jne 0x460a27
lea edx, [ebx + 0x2c]
push edx
call fcn.0045c45c
pop ecx
xor ecx, ecx
mov dword [ebx + 0x28], ecx
lea eax, [ebx + 0x40]
push eax
call fcn.0045c45c
pop ecx
xor edx, edx
mov dword [ebx + 0x54], edx
xor ecx, ecx
mov dword [ebx + 0x58], ecx
push 6
push 1
push 2
call sub.WSOCK32.DLL_socket
mov dword [ebx + 0x24], eax
cmp eax, 0xffffffff
jne 0x460a4a
push str.WINSOCK.DLL
call fcn.0045bbf8
pop ecx
jmp 0x460b77
push 0x33
mov edx, dword [0x628170]
push 0x505
push edx
mov ecx, dword [ebx + 0x24]
push ecx
call sub.WSOCK32.DLL_WSAAsyncSelect
inc eax
jne 0x460a74
push 0x5f12c6
call fcn.0045bbf8
pop ecx
jmp 0x460b77
mov word [ebp - 0x14], 2
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dx, word [ebx + 0x60]
mov word [ebp - 0x12], dx
push 0x10
push ecx
mov eax, dword [ebx + 0x24]
push eax
call sub.WSOCK32.DLL_connect
inc eax
jne 0x460ad0
call sub.WSOCK32.DLL_WSAGetLastError
cmp eax, 0x2733
je 0x460ad0
xor edx, edx
mov dl, byte [ebp + 0xb]
push edx
xor ecx, ecx
mov cl, byte [ebp + 0xa]
push ecx
xor eax, eax
mov al, byte [ebp + 9]
push eax
xor edx, edx
mov dl, byte [ebp + 8]
push edx
push 0x5f12eb
call fcn.0045bbf8
add esp, 0x14
jmp 0x460b77
push 0
call fcn.00460538
pop ecx
mov edi, eax
cmp dword [0x628168], 0
jne 0x460afb
mov dword [0x628168], 0x7d0
jmp 0x460afb
push 0
call fcn.004606f4
pop ecx
test eax, eax
jne 0x460b13
push 0
call fcn.00460538
pop ecx
sub eax, edi
cmp eax, dword [0x628168]
jge 0x460b13
cmp dword [ebx + 8], 0
je 0x460aef
cmp dword [ebx + 8], 0
jne 0x460b40
xor eax, eax
mov al, byte [ebp + 0xb]
push eax
xor edx, edx
mov dl, byte [ebp + 0xa]
push edx
xor ecx, ecx
mov cl, byte [ebp + 9]
push ecx
xor eax, eax
mov al, byte [ebp + 8]
push eax
push str._d._d._d._d
call fcn.0045bbf8
add esp, 0x14
jmp 0x460b77
mov eax, dword [0x628158]
mov dword [ebx + 0x20], eax
inc dword [0x628158]
cmp dword [0x628158], 0x7ff
jle 0x460b62
xor edx, edx
mov dword [0x628158], edx
inc dword [0x628154]
shl eax, 0x10
or esi, eax
or esi, 0x48000000
mov eax, esi
jmp 0x460bc7
test ebx, ebx
je 0x460bc4
lea ecx, [ebx + 0x64]
push ecx
call fcn.00462010
pop ecx
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x460b97
cmp eax, 0xffffffff
je 0x460b97
push eax
call sub.WSOCK32.DLL_closesocket
xor edx, edx
mov dword [ebx + 0x24], edx
lea ecx, [ebx + 0x2c]
push ecx
call fcn.0045c48c
pop ecx
lea eax, [ebx + 0x40]
push eax
call fcn.0045c48c
pop ecx
xor edx, edx
mov dword [ebx], edx
push ebx
call fcn.0045e400
pop ecx
xor ecx, ecx
mov dword [esi*4 + 0x624130], ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret