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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi + 0x54]
lea ebx, [esi + 0x54]
mov ecx, ebx
call dword [eax + 4]
mov edi, eax
test edi, edi
je 0x406415
mov eax, dword [edi + 8]
cmp eax, dword [ebp + 8]
je 0x406411
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 8]
mov edi, eax
test edi, edi
jne 0x4063fb
test edi, edi
jne 0x406423
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x406622
mov ecx, dword [esi + 0x8c]
push edi
push dword [esi + 0x20]
call fcn.0040d688
push 0
lea eax, [ebp - 0x12c]
push 0x103
push eax
push dword [edi + 8]
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x40660b
and byte [ebp + eax - 0x12c], 0
mov ecx, dword [esi + 0x94]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x12c]
push eax
push edi
call fcn.004150fa
test eax, eax
je 0x40660b
mov ebx, 0x6a0
push ebx
call fcn.0041802e
mov esi, eax
push ebx
push 0
push esi
call fcn.00418050
or dword [esi + 0x34], 0xffffffff
mov dword [esi + 8], edi
mov eax, dword [ebp - 0x24]
add esp, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 8]
push edi
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x20]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
call fcn.0041735d
mov ebx, dword [ebp - 4]
pop ecx
push esi
mov eax, dword [ebx + 0x48]
lea ecx, [ebx + 0x48]
call dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x406503
mov eax, ecx
jmp 0x406506
mov eax, dword [eax + 0x10]
lea edi, [esi + 0x560]
push edi
push eax
call fcn.004169ec
pop ecx
test eax, eax
pop ecx
je 0x4065fc
mov eax, dword [edi]
shr eax, 4
and eax, 1
mov dword [esi + 0x1c], eax
jne 0x406535
cmp dword [esi + 0x18], 0x62
je 0x406535
push 6
pop eax
jmp 0x406537
xor eax, eax
cmp byte [esi + 0x58c], 0
lea edx, [esi + 0x58c]
mov dword [esi + 0x48], eax
jne 0x406563
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x406557
mov eax, ecx
jmp 0x40655a
mov eax, dword [eax + 0x10]
push edx
push eax
call fcn.0040c5c2
pop ecx
pop ecx
cmp dword [esi + 0x1c], 0
je 0x406584
xor eax, eax
cmp dword [esi + 0x18], 0x62
push 0x208
sete al
mov edi, eax
call fcn.0041883f
pop ecx
mov dword [esi + 0x50], eax
jmp 0x4065d8
mov eax, dword [ebx + 0x98]
test byte [eax + 0x41c], 1
je 0x4065b6
mov ecx, dword [esi + 0x578]
lea eax, [esi + 0x574]
cmp ecx, dword [esi + 0x14]
jl 0x4065b6
jg 0x4065ad
mov eax, dword [eax]
cmp eax, dword [esi + 0x10]
jbe 0x4065b6
mov dword [esi + 0x48], 8
jmp 0x4065fc
cmp dword [esi + 0x18], 0x62
je 0x4065dc
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4065ca
mov eax, ecx
jmp 0x4065cd
mov eax, dword [eax + 0x10]
push esi
push eax
mov ecx, ebx
call fcn.0040662b
mov edi, eax
test edi, edi
je 0x4065fc
or dword [esi + 0x3c], 0xffffffff
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push edi
push esi
push 0x40676e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x3c], eax
jne 0x406606
push esi
mov ecx, ebx
call fcn.00406f6d
jmp 0x406622
push 1
pop eax
jmp 0x406624
push edi
call fcn.0041735d
pop ecx
push dword [edi + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
push edi
call fcn.0041803c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4