Function at 0x407076
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485a66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
call fcn.00408430
mov dword [ebp - 4], 0
lea eax, [ebx + 0x20]
mov dword [eax], 0
mov dword [ebp - 0x20], eax
lea eax, [ebx + 0x24]
mov dword [eax], 0
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x28]
mov dword [eax], 0
mov dword [ebx + 0x18], 0
mov dword [ebp - 0x28], eax
lea eax, [ebx + 0x30]
mov dword [eax], 0
mov dword [ebp - 0x2c], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebx + 0x48]
mov dword [eax], 0
mov dword [ebp - 0x18], eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
lea eax, [ebx + 0x54]
mov dword [eax], 0
mov dword [ebp - 0x10], eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [ebx + 0x1c], 1
mov ebx, dword [ebp + 0xc]
nop
lea eax, [ebp + 8]
mov esi, 2
mov dword [ebp + 0xc], eax
call edi
mov dword [ebp - 0x1c], eax
push 0
push esi
push dword [ebp + 0xc]
push dword [ebx + 0x60]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x406eee
add dword [ebp + 0xc], eax
sub esi, eax
call edi
sub eax, dword [ebp - 0x1c]
cmp eax, 0x7530
ja 0x406eee
test esi, esi
jg 0x406ec0
movzx eax, word [ebp + 8]
jmp 0x406ef0
xor eax, eax
movzx eax, ax
add eax, 0xfffffc18
cmp eax, 0xb
ja case.0x406efd.1001
jmp dword [eax*4 + 0x4072e8]
mov eax, dword [ebp - 0x20]
mov esi, 4
mov dword [ebp + 0xc], eax
call edi
mov dword [ebp - 0x1c], eax
push 0
push esi
push dword [ebp + 0xc]
push dword [ebx + 0x60]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle case.0x406efd.1011
add dword [ebp + 0xc], eax
sub esi, eax
call edi
sub eax, dword [ebp - 0x1c]
cmp eax, 0x7530
ja case.0x406efd.1011
test esi, esi
jg 0x406f14
jmp case.0x406efd.1001
mov eax, dword [ebp - 0x24]
mov esi, 4
mov dword [ebp + 0xc], eax
call edi
mov dword [ebp - 0x1c], eax
nop dword [eax]
push 0
push esi
push dword [ebp + 0xc]
push dword [ebx + 0x60]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle case.0x406efd.1011
add dword [ebp + 0xc], eax
sub esi, eax
call edi
sub eax, dword [ebp - 0x1c]
cmp eax, 0x7530
ja case.0x406efd.1011
test esi, esi
jg 0x406f60
jmp case.0x406efd.1001
mov eax, dword [ebp - 0x28]
mov esi, 4
mov dword [ebp + 0xc], eax
call edi
mov dword [ebp - 0x1c], eax
push 0
push esi
push dword [ebp + 0xc]
push dword [ebx + 0x60]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle case.0x406efd.1011
add dword [ebp + 0xc], eax
sub esi, eax
call edi
sub eax, dword [ebp - 0x1c]
cmp eax, 0x7530
ja case.0x406efd.1011
test esi, esi
jg 0x406fa5
jmp case.0x406efd.1001
mov eax, dword [ebp - 0x14]
mov esi, 4
add eax, 0x2c
mov dword [ebp + 0xc], eax
call edi
mov dword [ebp - 0x1c], eax
nop dword [eax]
push 0
push esi
push dword [ebp + 0xc]
push dword [ebx + 0x60]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle case.0x406efd.1011
add dword [ebp + 0xc], eax
sub esi, eax
call edi
sub eax, dword [ebp - 0x1c]
cmp eax, 0x7530
ja case.0x406efd.1011
test esi, esi
jg 0x406ff0
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x2c], 0
seta al
mov byte [ecx + 0x1c], al
jmp case.0x406efd.1001
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.00405870
test al, al
jne case.0x406efd.1001
jmp case.0x406efd.1011
mov esi, dword [ebp - 0x18]
push ecx
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.00409780
mov eax, dword [esi]
mov dword [esi + 4], eax
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.004096f0
mov eax, dword [esi]
add esp, 4
mov dword [esi + 4], eax
jmp case.0x406efd.1001
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00405870
test al, al
je 0x40729d
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x50]
push ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x4070c2
mov ecx, eax
call fcn.00408430
add dword [esi + 4], 0x18
jmp 0x4070ca
push eax
mov ecx, esi
call fcn.004094b0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb case.0x406efd.1001
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4070fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4072e3
push edx
push ecx
call fcn.00460334
add esp, 8
jmp case.0x406efd.1001
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 5
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x407149
xor ecx, ecx
xor edx, edx
mov dword [eax], ecx
xor esi, esi
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x10]
add dword [ecx + 4], 0xc
jmp 0x40715f
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.004092e0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 4], 3
test esi, esi
je case.0x406efd.1001
push ecx
mov ecx, esi
call fcn.00409780
mov ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 4
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4071b0
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4072e3
push ecx
push esi
call fcn.00460334
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
jmp case.0x406efd.1001
mov esi, dword [ebp - 0x10]
mov eax, 0x2aaaaaab
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je case.0x406efd.1001
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.00405870
test al, al
je 0x40729d
mov ecx, dword [ebp - 0x10]
mov eax, 0x2aaaaaab
mov esi, dword [esi]
mov ecx, dword [ecx + 4]
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x50]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push ecx
lea eax, [eax + eax*2]
lea esi, [esi + eax*4]
mov eax, dword [esi - 8]
cmp eax, dword [esi - 4]
je 0x407257
mov ecx, eax
call fcn.00408430
add dword [esi - 8], 0x18
jmp 0x407260
push eax
lea ecx, [esi - 0xc]
call fcn.004094b0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb case.0x406efd.1001
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40728e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4072e3
push edx
push ecx
call fcn.00460334
add esp, 8
jmp case.0x406efd.1001
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb case.0x406efd.1011
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4072c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4072e3
push edx
push ecx
call fcn.00460334
add esp, 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.00465850
dec ecx
jo 4223787
add byte [eax + 0xb00406e], dh
jno 0x407333
add ah, dl
jno 0x407337
add byte [esi + 0x70], dh
inc eax
add byte [edi + ebp*2], al
inc eax
add byte [ecx + 0x6f], cl
inc eax
add byte [ecx + 0x6f], cl
inc eax
add byte [ebp - 0x25ffbf91], dl
outsd dx, dword [esi]
inc eax
add byte [edx], dh
jo 0x407353
add ch, cl
jb 0x407357
add ah, cl
int3
pop ebp
sbb byte [esi - 0x75], dl
int1
push edi
mov edi, dword [ebp + 0x14]
add edi, dword [ebp + 0xc]
adc al, 3
jge 0x407343
mov eax, dword [esi + 0x1c]
adc ebx, dword [ebp + 0x10]
test byte [esi + 0x3c], 2
mov eax, dword [eax]
mov dword [esp + 0x10], eax
je 0x40734d
xor ecx, ecx
jmp 0x40735e
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
leave
je 0x40735e
cmp dword [esi + 0x38], ecx
jae 0x40735e
dec esi
cmp byte [ebx + 3], dh
mov dword [esi + 0x38], ecx
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x18], eax
sub eax, edx
mov dword [esp + 0xc], edx
cdq
cmp ebx, edx
ja 0x4073f2
jb 0x40737b
cmp edi, eax
ja 0x4073f2
mov edx, dword [ebp + 0x24]
mov eax, edi
or eax, ebx
je 0x407399
test dl, 1
je 0x407390
cmp dword [esp + 0x10], 0
je 0x4073f2
test dl, 2
je 0x407399
test ecx, ecx
je 0x4073f2
mov eax, dword [esp + 0xc]
add eax, edi
test dl, 1
je 0x4073be
cmp dword [esp + 0x10], 0
je 0x4073be
mov edx, dword [esi + 0x1c]
mov dword [edx], eax
mov edx, dword [esp + 0x18]
sub edx, eax
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov edx, dword [ebp + 0x24]
test dl, 2
je 0x4073e8
test ecx, ecx
je 0x4073e8
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x30]
mov edx, dword [eax]
mov eax, dword [esi + 0x10]
add edx, dword [ecx]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
add ecx, edi
mov eax, dword [esi + 0x20]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [eax + 4], ebx
jmp 0x407402
mov eax, dword [ebp + 8]
mov dword [eax], 0xffffffff
mov dword [eax + 4], 0xffffffff
pop edi
xorps xmm0, xmm0
mov dword [eax + 8], 0
pop esi
mov dword [eax + 0xc], 0
movq qword [eax + 0x10], xmm0
pop ebx
mov esp, ebp
pop ebp
ret 0x20