Function at 0x406d04
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x110
push 0
push 0
dec ecx
jne 0x406d0c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x407054
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.00404d24
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x856], 0x128
lea edx, [ebp - 0x856]
mov eax, dword [ebp - 0x10]
call fcn.00404d44
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x40701d
mov eax, dword [ebp - 0x84e]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x407009
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
call fcn.00404a10
push 0x12d
lea ecx, [ebp - 0x601]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00404a40
lea eax, [ebp - 0x85c]
lea edx, [ebp - 0x601]
mov ecx, 0x12d
call fcn.004038c0
mov edx, dword [ebp - 0x85c]
mov eax, 0x40706c
call fcn.00403c1c
test eax, eax
jle 0x407003
lea edx, [ebp - 0x860]
mov eax, 0x10
call fcn.00405874
push dword [ebp - 0x860]
push 0x407078
lea edx, [ebp - 0x864]
mov eax, dword [ebp - 0x842]
call fcn.00405874
push dword [ebp - 0x864]
push 0x407078
lea edx, [ebp - 0x868]
mov eax, dword [ebp - 0x84e]
call fcn.00405874
push dword [ebp - 0x868]
push 0x407078
lea ecx, [ebp - 0x86c]
mov edx, 8
mov eax, dword [ebp - 0x84e]
call fcn.00406cdc
push dword [ebp - 0x86c]
push 0x407078
lea eax, [ebp - 0x870]
lea edx, [ebp - 0x601]
mov ecx, 0x12d
call fcn.004038c0
push dword [ebp - 0x870]
push 0x407084
lea eax, [ebp - 0x14]
mov edx, 0xa
call fcn.00403998
push 0
mov eax, dword [ebp - 0x14]
call fcn.004038d8
push eax
lea eax, [ebp - 0x14]
call fcn.00403b30
push eax
mov eax, dword [0x40a728]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
push 0
push 0xa
lea eax, [ebp - 0x1e]
push eax
mov eax, dword [0x40a728]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
test eax, eax
jg 0x406ebf
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x40702e
cmp dword [ebp - 4], 1
jne 0x407003
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x4d4]
mov ecx, 0x4b4
mov eax, ebx
call fcn.00404a10
mov esi, dword [ebp - 8]
shr esi, 2
lea eax, [ebp - 0x14]
call fcn.00403764
mov edi, esi
test di, di
jb 0x407003
inc edi
lea esi, [ebp - 0x4d4]
push 0x12d
lea ecx, [ebp - 0x72e]
mov edx, dword [esi]
mov eax, ebx
call fcn.00404a40
lea edx, [ebp - 0x874]
mov eax, 0x11
call fcn.00405874
push dword [ebp - 0x874]
push 0x407078
lea edx, [ebp - 0x878]
mov eax, dword [ebp - 0x84e]
call fcn.00405874
push dword [ebp - 0x878]
push 0x407078
lea eax, [ebp - 0x880]
lea edx, [ebp - 0x601]
mov ecx, 0x12d
call fcn.004038c0
mov eax, dword [ebp - 0x880]
lea edx, [ebp - 0x87c]
call fcn.004066ec
push dword [ebp - 0x87c]
push 0x407090
lea eax, [ebp - 0x884]
lea edx, [ebp - 0x72e]
mov ecx, 0x12d
call fcn.004038c0
push dword [ebp - 0x884]
push 0x407084
lea eax, [ebp - 0x14]
mov edx, 8
call fcn.00403998
push 0
mov eax, dword [ebp - 0x14]
call fcn.004038d8
push eax
lea eax, [ebp - 0x14]
call fcn.00403b30
push eax
mov eax, dword [0x40a728]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
push 0
push 0xa
lea eax, [ebp - 0x1e]
push eax
mov eax, dword [0x40a728]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
test eax, eax
jg 0x406ff7
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x40702e
add esi, 4
dec di
jne 0x406eff
push ebx
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x856]
mov eax, dword [ebp - 0x10]
call fcn.00404d64
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x406d5a
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40705b
lea eax, [ebp - 0x884]
mov edx, 0xb
call fcn.00403788
lea eax, [ebp - 0x14]
call fcn.00403764
ret