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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4607a4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460bbe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov byte [eax], 1
lea eax, [ebp - 0x1c]
mov edx, dword [0x4a3760]
mov ecx, 0xf
call fcn.00404950
cmp dword [ebp - 0x1c], 0
jne 0x460a67
mov eax, dword [0x4a3760]
mov edx, 0xe
call fcn.0045d624
call fcn.00460334
mov edx, dword [0x4a3760]
mov dword [edx + 0x13], eax
xor eax, eax
push ebp
push 0x460844
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
call fcn.004046e0
push eax
lea eax, [ebp - 0x20]
call fcn.0045df14
mov eax, dword [ebp - 0x20]
call fcn.00404ba0
mov edx, eax
mov ecx, 0x460bcc
mov eax, 0x80000002
call fcn.0045eaf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46084e
mov eax, dword [0x4a3760]
add eax, 0x17
mov edx, 0x40
call fcn.00407984
cmp dword [ebp - 0x18], 0
jne 0x460897
lea eax, [ebp - 0x24]
mov edx, dword [0x4a39ec]
mov edx, dword [edx]
call fcn.004048d8
mov eax, dword [ebp - 0x24]
call fcn.004049a0
mov ecx, eax
mov edx, dword [0x4a39ec]
mov edx, dword [edx]
mov eax, dword [0x4a3760]
add eax, 0x17
call fcn.00407968
jmp 0x4608b8
mov eax, dword [ebp - 0x18]
call fcn.004049a0
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404ba0
mov edx, eax
mov eax, dword [0x4a3760]
add eax, 0x17
pop ecx
call fcn.00407968
mov eax, dword [0x4a3760]
add eax, 0x57
mov edx, 0x96
call fcn.0045d730
lea eax, [ebp - 0x10]
call fcn.0045feac
mov eax, dword [0x4a3760]
add eax, 0xee
mov edx, 0x20
call fcn.00407984
mov eax, dword [ebp - 0x10]
call fcn.004049a0
push eax
lea eax, [ebp - 0x10]
call fcn.00404bf8
mov edx, eax
mov eax, dword [0x4a3760]
add eax, 0xee
pop ecx
call fcn.00407968
xor eax, eax
call fcn.0045d6c8
mov ebx, eax
mov eax, dword [0x4a3760]
mov byte [eax + 0x14e], bl
mov eax, dword [0x4a3760]
test bl, bl
jbe 0x460934
mov eax, dword [0x4a3760]
mov dword [eax + 0xf], 1
jmp 0x46093e
mov eax, dword [0x4a3760]
xor edx, edx
mov dword [eax + 0xf], edx
mov eax, dword [0x4a3760]
add eax, 0x14f
mov edx, 0x1f
call fcn.0045cfd8
mov eax, dword [0x4a3760]
add eax, 0x16f
mov edx, 0x1f
call fcn.0045d13c
mov eax, dword [0x4a3760]
add eax, 0x18f
mov edx, 0xa
call fcn.00407984
lea eax, [ebp - 0x28]
mov edx, dword [0x4a3ad8]
mov edx, dword [edx]
call fcn.004048d8
mov eax, dword [ebp - 0x28]
call fcn.004049a0
mov ecx, eax
mov edx, dword [0x4a3ad8]
mov edx, dword [edx]
mov eax, dword [0x4a3760]
add eax, 0x18f
call fcn.00407968
xor eax, eax
push ebp
push 0x4609ed
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.004046e0
push eax
lea eax, [ebp - 0x2c]
call fcn.0045df14
mov eax, dword [ebp - 0x2c]
call fcn.00404ba0
mov edx, eax
mov ecx, 0x460bd4
mov eax, 0x80000002
call fcn.0045eaf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4609f7
mov eax, dword [0x4a3760]
add eax, 0x10e
mov edx, 0x40
call fcn.00407984
cmp dword [ebp - 0x14], 0
jne 0x460a44
lea eax, [ebp - 0x30]
mov edx, dword [0x4a35b0]
mov edx, dword [edx]
call fcn.004048d8
mov eax, dword [ebp - 0x30]
call fcn.004049a0
mov ecx, eax
mov edx, dword [0x4a35b0]
mov edx, dword [edx]
mov eax, dword [0x4a3760]
add eax, 0x10e
call fcn.00407968
jmp 0x460a67
mov eax, dword [ebp - 0x14]
call fcn.004049a0
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404ba0
mov edx, eax
mov eax, dword [0x4a3760]
add eax, 0x10e
pop ecx
call fcn.00407968
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov edx, dword [0x4a3760]
mov dword [edx + 0x199], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [0x4a3760]
mov dword [edx + 0x19d], eax
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], ebx
cmp ebx, 0xffffffff
jne 0x460ab4
push ebx
call sub.wsock32.dll_closesocket
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x460ba3
push 0x10
push 0x4a4fe8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.wsock32.dll_connect
inc eax
jne 0x460ae1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.wsock32.dll_closesocket
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x460ba3
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.00460520
mov dword [ebp - 0xc], 0x1a1
push 0
mov edx, dword [0x4a3760]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
call fcn.0045dba8
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
call sub.ws2_32.dll_WSACreateEvent
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], ebx
push 0x23
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.ws2_32.dll_WSAEventSelect
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push 0x460570
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push 0x460580
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460bc5
lea eax, [ebp - 0x30]
mov edx, 9
call fcn.00404704
ret