Function at 0x4146f6
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
sub esp, 0x128
push ebx
push esi
push edi
mov esi, ecx
push ebp
lea ebp, [esi + 0x54]
mov ecx, ebp
mov ebx, dword [ebp]
call dword [ebx + 4]
mov edi, eax
test edi, edi
je 0x41472f
mov eax, dword [esp + 0x13c]
cmp dword [edi + 8], eax
je 0x41472b
push edi
mov ecx, ebp
call dword [ebx + 8]
mov edi, eax
test edi, edi
jne 0x414713
test edi, edi
jne 0x414740
push dword [esp + 0x13c]
call sub.WSOCK32.dll_closesocket
jmp 0x414978
push edi
mov ecx, dword [esi + 0x8c]
push dword [esi + 0x20]
call fcn.00408cab
lea eax, [esp + 0x34]
push 0
push 0x103
push eax
push dword [edi + 8]
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x41495e
mov byte [esp + eax + 0x34], 0
test eax, eax
jle 0x41495e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
mov ecx, dword [esi + 0x94]
call fcn.004111c4
test eax, eax
je 0x41495e
mov ebp, 0x6a0
push ebp
call fcn.004188d0
add esp, 4
mov ebx, eax
push ebp
push 0
push ebx
lea ebp, [ebx + 8]
call fcn.00418610
add esp, 0xc
mov dword [ebp], edi
mov dword [ebx + 0x34], 0xffffffff
mov eax, dword [esp + 0x10]
lea edx, [ebx + 0x28]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x44], eax
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x40], ecx
mov eax, dword [esp + 0x24]
and eax, 0xff
mov dword [ebx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp]
lea ebp, [ebx + 0x10]
mov edx, dword [eax + 0x20]
push edi
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
call fcn.00404f70
add esp, 4
lea ecx, [esi + 0x48]
push ebx
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x414834
mov ecx, dword [eax + 0x10]
lea edi, [ebx + 0x560]
push edi
push ecx
call fcn.00412c10
add esp, 8
test eax, eax
jne 0x414855
push ebx
mov ecx, esi
call fcn.004153ad
jmp 0x414978
mov eax, dword [edi]
and eax, 0x10
shr eax, 4
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x414875
cmp dword [ebx + 0x18], 0x62
je 0x414875
lea edi, [ebx + 0x48]
mov dword [edi], 6
jmp 0x41487e
lea edi, [ebx + 0x48]
mov dword [edi], 0
lea edx, [ebx + 0x58c]
cmp byte [edx], 0
jne 0x4148a0
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x414896
mov eax, dword [ecx + 0x10]
push edx
push eax
call fcn.0040c357
add esp, 8
cmp dword [ebx + 0x1c], 0
je 0x4148c5
mov eax, dword [ebx + 0x18]
push 0x208
sub eax, 0x62
cmp eax, 1
sbb ebp, ebp
call fcn.00419300
add esp, 4
mov dword [ebx + 0x50], eax
neg ebp
jmp 0x41491a
mov eax, dword [esi + 0x98]
test byte [eax + 0x308], 1
je 0x4148f5
lea ecx, [ebx + 0x574]
mov edx, dword [ebp]
mov eax, dword [ebp + 4]
cmp dword [ecx + 4], eax
jl 0x4148f5
jg 0x4148eb
cmp dword [ecx], edx
jbe 0x4148f5
xor ebp, ebp
mov dword [edi], 8
jmp 0x41491a
cmp dword [ebx + 0x18], 0x62
jne 0x414902
mov ebp, 1
jmp 0x41491a
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x41490f
mov eax, dword [ecx + 0x10]
push ebx
mov ecx, esi
push eax
call fcn.00414987
mov ebp, eax
test ebp, ebp
jne 0x414928
push ebx
mov ecx, esi
call fcn.004153ad
jmp 0x414978
lea edi, [ebx + 0x3c]
lea eax, [esp + 0x30]
push eax
xor ebp, ebp
push ebp
mov dword [edi], 0xffffffff
push ebx
push 0x414afe
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
cmp eax, ebp
jne 0x414957
push ebx
mov ecx, esi
call fcn.004153ad
jmp 0x414978
mov eax, 1
jmp 0x41497a
push edi
call fcn.00404f70
add esp, 4
push dword [edi + 8]
call sub.WSOCK32.dll_closesocket
push edi
call fcn.00418440
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x128
ret 4