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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
lea ebx, [ecx + 0x54]
mov eax, dword [ebx]
mov edi, ecx
mov ecx, ebx
call dword [eax + 4]
mov esi, eax
test esi, esi
je 0x414278
mov eax, dword [ebp + 8]
cmp dword [esi + 8], eax
je 0x414274
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 8]
mov esi, eax
test esi, esi
jne 0x41425e
test esi, esi
jne 0x414285
push dword [ebp + 8]
call sub.WSOCK32.dll_closesocket
jmp 0x4144a3
push esi
mov ecx, dword [edi + 0x8c]
push dword [edi + 0x20]
call fcn.00408d84
push 0
lea eax, [ebp - 0x128]
push 0x103
push eax
push dword [esi + 8]
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x414489
mov byte [ebp + eax - 0x128], 0
test eax, eax
jle 0x414489
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x128]
push eax
push ecx
push esi
mov ecx, dword [edi + 0x94]
call fcn.00410d2a
test eax, eax
je 0x414489
push 0x6a0
call fcn.00417e80
add esp, 4
mov ebx, eax
push 0x6a0
push 0
push ebx
call fcn.00417bc0
add esp, 0xc
lea edx, [ebx + 0x28]
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x44], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + 0x40], ecx
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov dword [ebx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 8]
mov dword [ecx + 0x20], eax
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x20]
push esi
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
lea eax, [ebx + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
call fcn.00404fe6
add esp, 4
lea ecx, [edi + 0x48]
push ebx
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x41436f
mov ecx, dword [eax + 0x10]
lea esi, [ebx + 0x560]
push esi
push ecx
call fcn.004127dc
add esp, 8
test eax, eax
jne 0x414390
push ebx
mov ecx, edi
call fcn.00414e5b
jmp 0x4144a3
mov eax, dword [esi]
and eax, 0x10
shr eax, 4
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x4143ae
cmp dword [ebx + 0x18], 0x62
je 0x4143ae
mov dword [ebx + 0x48], 6
jmp 0x4143b5
mov dword [ebx + 0x48], 0
lea edx, [ebx + 0x58c]
cmp byte [edx], 0
jne 0x4143d7
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4143cd
mov eax, dword [ecx + 0x10]
push edx
push eax
call fcn.0040c32a
add esp, 8
cmp dword [ebx + 0x1c], 0
je 0x4143fc
mov eax, dword [ebx + 0x18]
push 0x208
sub eax, 0x62
cmp eax, 1
sbb esi, esi
call fcn.004188b0
add esp, 4
mov dword [ebx + 0x50], eax
neg esi
jmp 0x414447
mov eax, dword [edi + 0x98]
test byte [eax + 0x2e8], 1
je 0x41442f
mov esi, dword [ebx + 0x14]
lea ecx, [ebx + 0x574]
lea eax, [ebx + 0x10]
cmp dword [ecx + 4], esi
mov edx, dword [eax]
jl 0x41442f
jg 0x414424
cmp dword [ecx], edx
jbe 0x41442f
mov dword [ebx + 0x48], 8
xor esi, esi
jmp 0x414447
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x41443c
mov eax, dword [ecx + 0x10]
push ebx
mov ecx, edi
push eax
call fcn.004144ae
mov esi, eax
test esi, esi
jne 0x414455
push ebx
mov ecx, edi
call fcn.00414e5b
jmp 0x4144a3
lea eax, [ebp - 0x24]
xor esi, esi
mov dword [ebx + 0x3c], 0xffffffff
push eax
push esi
push ebx
push 0x4145f6
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x3c], eax
cmp eax, esi
jne 0x414482
push ebx
mov ecx, edi
call fcn.00414e5b
jmp 0x4144a3
mov eax, 1
jmp 0x4144a5
push esi
call fcn.00404fe6
add esp, 4
push dword [esi + 8]
call sub.WSOCK32.dll_closesocket
push esi
call fcn.004179f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4