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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea ebx, [esi + 0x60]
mov ecx, ebx
call fcn.00419388
mov edi, eax
test edi, edi
je 0x4063e1
mov eax, dword [edi + 8]
cmp eax, dword [ebp + 8]
je 0x4063dd
push edi
mov ecx, ebx
call fcn.00419396
mov edi, eax
test edi, edi
jne 0x4063c7
test edi, edi
jne 0x4063ef
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x4065f7
mov ecx, dword [esi + 0x94]
push edi
push dword [esi + 0x3c]
call fcn.0040dc6b
push 0
lea eax, [ebp - 0x334]
push 0x30b
push eax
push dword [edi + 8]
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x4065df
and byte [ebp + eax - 0x334], 0
mov ecx, dword [esi + 0x9c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x334]
push eax
push edi
call fcn.004154a4
test eax, eax
je 0x4065df
mov ebx, 0xad0
push ebx
call fcn.0041b8da
mov esi, eax
push ebx
push 0
push esi
call fcn.0041b900
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
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x60]
call fcn.00419363
mov ebx, dword [ebp - 4]
push esi
lea ecx, [ebx + 0x58]
call fcn.0041934e
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4064d4
mov eax, ecx
jmp 0x4064d7
mov eax, dword [eax + 0x10]
lea edi, [esi + 0x768]
push 1
push edi
push eax
call fcn.00417005
add esp, 0xc
test eax, eax
je 0x4065d0
mov eax, dword [edi]
shr eax, 4
and eax, 1
mov dword [esi + 0x1c], eax
jne 0x406509
cmp dword [esi + 0x18], 0x62
je 0x406509
push 6
pop eax
jmp 0x40650b
xor eax, eax
cmp byte [esi + 0x794], 0
lea edx, [esi + 0x794]
mov dword [esi + 0x48], eax
jne 0x406537
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40652b
mov eax, ecx
jmp 0x40652e
mov eax, dword [eax + 0x10]
push edx
push eax
call fcn.0040cc67
pop ecx
pop ecx
cmp dword [esi + 0x1c], 0
je 0x406558
xor eax, eax
cmp dword [esi + 0x18], 0x62
push 0x618
sete al
mov edi, eax
call fcn.0041c16f
pop ecx
mov dword [esi + 0x50], eax
jmp 0x4065ac
mov eax, dword [ebx + 0xa0]
test byte [eax + 0x724], 1
je 0x40658a
mov ecx, dword [esi + 0x780]
lea eax, [esi + 0x77c]
cmp ecx, dword [esi + 0x14]
jl 0x40658a
jg 0x406581
mov eax, dword [eax]
cmp eax, dword [esi + 0x10]
jbe 0x40658a
mov dword [esi + 0x48], 8
jmp 0x4065d0
cmp dword [esi + 0x18], 0x62
je 0x4065b0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40659e
mov eax, ecx
jmp 0x4065a1
mov eax, dword [eax + 0x10]
push esi
push eax
mov ecx, ebx
call fcn.00406600
mov edi, eax
test edi, edi
je 0x4065d0
or dword [esi + 0x3c], 0xffffffff
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push edi
push esi
push 0x406745
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x3c], eax
jne 0x4065da
push esi
mov ecx, ebx
call fcn.00406f7f
jmp 0x4065f7
push 1
pop eax
jmp 0x4065f9
push edi
mov ecx, ebx
call fcn.00419363
push dword [edi + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
push edi
call fcn.0041b8e8
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4