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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fec6
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.0040e500
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 0x40d03e
add dword [ebp + 0xc], eax
sub esi, eax
call edi
sub eax, dword [ebp - 0x1c]
cmp eax, 0x7530
ja 0x40d03e
test esi, esi
jg 0x40d010
movzx eax, word [ebp + 8]
jmp 0x40d040
xor eax, eax
movzx eax, ax
add eax, 0xfffffc18
cmp eax, 0xb
ja case.0x40d04d.1001
jmp dword [eax*4 + 0x40d438]
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.0x40d04d.1011
add dword [ebp + 0xc], eax
sub esi, eax
call edi
sub eax, dword [ebp - 0x1c]
cmp eax, 0x7530
ja case.0x40d04d.1011
test esi, esi
jg 0x40d064
jmp case.0x40d04d.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.0x40d04d.1011
add dword [ebp + 0xc], eax
sub esi, eax
call edi
sub eax, dword [ebp - 0x1c]
cmp eax, 0x7530
ja case.0x40d04d.1011
test esi, esi
jg 0x40d0b0
jmp case.0x40d04d.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.0x40d04d.1011
add dword [ebp + 0xc], eax
sub esi, eax
call edi
sub eax, dword [ebp - 0x1c]
cmp eax, 0x7530
ja case.0x40d04d.1011
test esi, esi
jg 0x40d0f5
jmp case.0x40d04d.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.0x40d04d.1011
add dword [ebp + 0xc], eax
sub esi, eax
call edi
sub eax, dword [ebp - 0x1c]
cmp eax, 0x7530
ja case.0x40d04d.1011
test esi, esi
jg 0x40d140
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x2c], 0
seta al
mov byte [ecx + 0x1c], al
jmp case.0x40d04d.1001
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.0040b9f0
test al, al
jne case.0x40d04d.1001
jmp case.0x40d04d.1011
mov esi, dword [ebp - 0x18]
push ecx
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.0040f8b0
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.0040f820
mov eax, dword [esi]
add esp, 4
mov dword [esi + 4], eax
jmp case.0x40d04d.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.0040b9f0
test al, al
je 0x40d3ed
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x50]
push ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x40d212
mov ecx, eax
call fcn.0040e500
add dword [esi + 4], 0x18
jmp 0x40d21a
push eax
mov ecx, esi
call fcn.0040f5e0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb case.0x40d04d.1001
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d24c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d433
push edx
push ecx
call fcn.0046a77c
add esp, 8
jmp case.0x40d04d.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 0x40d299
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 0x40d2af
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.0040f410
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.0x40d04d.1001
push ecx
mov ecx, esi
call fcn.0040f8b0
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 0x40d300
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d433
push ecx
push esi
call fcn.0046a77c
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
jmp case.0x40d04d.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.0x40d04d.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.0040b9f0
test al, al
je 0x40d3ed
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 0x40d3a7
mov ecx, eax
call fcn.0040e500
add dword [esi - 8], 0x18
jmp 0x40d3b0
push eax
lea ecx, [esi - 0xc]
call fcn.0040f5e0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb case.0x40d04d.1001
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d3de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d433
push edx
push ecx
call fcn.0046a77c
add esp, 8
jmp case.0x40d04d.1001
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb case.0x40d04d.1011
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d413
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d433
push edx
push ecx
call fcn.0046a77c
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.0046fcb0
cdq
rol dword [eax], 1
add al, dl
inc eax
add byte [ebx - 0x2e], bl
inc eax
add byte [ebx + edx*8], ah
inc eax
add dh, al
rol dword [eax], 1
push esp
rol byte [eax], 1
cdq
rol byte [eax], 1
cdq
rol byte [eax], 1
in eax, 0xd0
inc eax
add byte [edx], ch
rol dword [eax], 1
adc cl, 0x40
add byte [3422568660], bl
int3