Function at 0x408cc2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], esi
call fcn.0040dad4
push 0x20
push esi
mov dword [eax], esi
lea eax, [ebp - 0x40]
push eax
call fcn.0040a390
add esp, 0xc
lea eax, [ebp - 0x60]
push 0x20
push esi
push eax
call fcn.0040a390
mov ecx, dword [ebp + 0x10]
add esp, 0xc
test ecx, ecx
je 0x408d33
mov eax, dword [ecx + 4]
mov esi, 0x3e8
cdq
idiv esi
imul esi, dword [ecx], 0x3e8
add esi, eax
mov dword [ebp - 0x1c], esi
xor esi, esi
cmp ebx, 0x100
jle 0x408d4e
call fcn.0040dad4
mov dword [eax], 0x16
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
test edi, edi
jne 0x408d57
cmp dword [ebp + 8], edi
je 0x408d3b
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x408d87
test ebx, ebx
jle 0x408d87
mov edx, esi
mov ecx, esi
sar edx, 3
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x408d76
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, 0x80
sar eax, cl
not al
and byte [edx + edi], al
inc esi
cmp esi, ebx
jl 0x408d62
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
je 0x408de9
mov esi, ecx
test ebx, ebx
jle 0x408de9
mov edi, ecx
mov ecx, esi
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x408da5
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, 0x80
mov eax, esi
sar edx, cl
mov ecx, dword [ebp - 0x10]
sar eax, 3
test byte [eax + ecx], dl
je 0x408ddf
call fcn.0040dad4
xor ecx, ecx
mov dword [eax], ecx
cmp edi, 0x3fc
ja 0x408faa
cmp dword [edi + 0x425388], ecx
je 0x408faa
inc dword [ebp - 0x14]
jmp 0x408de1
xor ecx, ecx
inc esi
add edi, 4
cmp esi, ebx
jl 0x408d96
mov edi, dword [ebp + 8]
test edi, edi
je 0x408e4a
mov esi, ecx
test ebx, ebx
jle 0x408e4a
mov edi, ecx
mov ecx, esi
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x408e07
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, 0x80
mov eax, esi
sar edx, cl
mov ecx, dword [ebp + 8]
sar eax, 3
test byte [eax + ecx], dl
je 0x408e3f
call fcn.0040dad4
xor ecx, ecx
mov dword [eax], ecx
cmp edi, 0x3fc
ja 0x408faa
cmp dword [edi + 0x425388], ecx
je 0x408faa
inc dword [ebp - 0x14]
inc esi
add edi, 4
cmp esi, ebx
jl 0x408df8
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x14], 0
je 0x408d3b
xor eax, eax
mov esi, eax
test ebx, ebx
jle 0x408f4b
cmp dword [ebp - 0x10], 0
je 0x408ed3
mov ecx, esi
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x408e75
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, 0x80
mov eax, esi
sar edx, cl
mov ecx, dword [ebp - 0x10]
sar eax, 3
test byte [eax + ecx], dl
je 0x408ed3
mov eax, dword [esi*4 + 0x425388]
cmp dword [eax + 0x5c], 1
jne 0x408ed3
xor edx, edx
mov ecx, eax
inc edx
call fcn.00407a58
mov eax, dword [esi*4 + 0x425388]
cmp dword [eax + 0x5c], 1
jne 0x408ed3
cmp dword [eax + 0x84], 1
jne 0x408ed3
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x200
je 0x408fba
mov eax, dword [eax + 0x10]
mov dword [ebp + ecx*4 - 0x864], eax
inc ecx
mov dword [ebp - 0x18], ecx
test edi, edi
je 0x408f40
mov ecx, esi
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x408ee6
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, esi
mov edx, 0x80
sar eax, 3
sar edx, cl
test byte [eax + edi], dl
je 0x408f40
mov eax, dword [esi*4 + 0x425388]
cmp dword [eax + 0x5c], 1
jne 0x408f40
xor edx, edx
mov ecx, eax
call fcn.00407a58
mov eax, dword [esi*4 + 0x425388]
cmp dword [eax + 0x5c], 1
jne 0x408f40
cmp dword [eax + 0x84], 2
jne 0x408f40
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x200
je 0x408fba
mov eax, dword [eax + 0x24]
mov dword [ebp + ecx*4 - 0x864], eax
inc ecx
mov dword [ebp - 0x18], ecx
inc esi
cmp esi, ebx
jl 0x408e60
xor eax, eax
push eax
xor edx, edx
xor ecx, ecx
call fcn.00405b25
pop ecx
test eax, eax
jne 0x408d46
xor edx, edx
mov esi, edx
test ebx, ebx
jle 0x409038
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x408fdd
mov ecx, esi
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x408f80
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edi, esi
mov ebx, 0x80
sar edi, 3
sar ebx, cl
test byte [edi + eax], bl
je 0x408fd7
mov ecx, dword [esi*4 + 0x425388]
cmp dword [ecx + 0x5c], 1
jne 0x408fca
xor edx, edx
inc edx
call fcn.004079b8
xor edx, edx
jmp 0x408fcc
call fcn.0040dad4
mov dword [eax], 9
jmp 0x408d46
call fcn.0040dad4
mov dword [eax], 0xc
jmp 0x408d46
mov eax, edx
test eax, eax
je 0x408fd7
or byte [ebp + edi - 0x40], bl
inc dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 8]
test edi, edi
je 0x40902f
mov ecx, esi
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x408ff0
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, dword [ebp + 8]
mov edi, esi
sar edi, 3
mov ebx, 0x80
sar ebx, cl
test byte [edi + eax], bl
je 0x409082
mov ecx, dword [esi*4 + 0x425388]
cmp dword [ecx + 0x5c], 1
jne 0x40901c
xor edx, edx
call fcn.004079b8
xor edx, edx
jmp 0x40901e
mov eax, edx
test eax, eax
je 0x409029
or byte [ebp + edi - 0x60], bl
inc dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 8]
inc esi
cmp esi, ebx
jl 0x408f6a
cmp dword [ebp + 0x10], 0
je 0x409048
cmp dword [ebp - 0x1c], 0
je 0x409168
cmp dword [ebp - 0xc], 0
jne 0x409168
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
xor eax, eax
sub ecx, dword [ebp - 0x20]
push eax
pop esi
sbb eax, esi
cmp dword [ebp + 0x10], 0
je 0x409086
cmp esi, eax
jb 0x40916a
mov eax, dword [ebp - 0x1c]
ja 0x40907e
cmp eax, ecx
jb 0x40916a
sub eax, ecx
jmp 0x409089
mov edi, eax
jmp 0x40902c
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x864]
push eax
call fcn.00405b25
pop ecx
test eax, eax
jne 0x408d46
mov edx, esi
mov dword [ebp - 0xc], edx
test ebx, ebx
jle 0x409052
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4090ff
mov ecx, esi
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x4090c0
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edi, esi
mov ebx, 0x80
sar edi, 3
sar ebx, cl
test byte [edi + eax], bl
je 0x4090f9
mov ecx, dword [esi*4 + 0x425388]
cmp dword [ecx + 0x5c], 1
jne 0x4090eb
xor edx, edx
inc edx
call fcn.004079b8
mov edx, dword [ebp - 0xc]
jmp 0x4090ed
xor eax, eax
test eax, eax
je 0x4090f9
or byte [ebp + edi - 0x40], bl
inc edx
mov dword [ebp - 0xc], edx
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 8]
test edi, edi
je 0x409157
mov ecx, esi
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x409112
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, dword [ebp + 8]
mov edi, esi
sar edi, 3
mov ebx, 0x80
sar ebx, cl
test byte [edi + eax], bl
je 0x4091c8
mov ecx, dword [esi*4 + 0x425388]
cmp dword [ecx + 0x5c], 1
jne 0x409140
xor edx, edx
call fcn.004079b8
jmp 0x409142
xor eax, eax
mov edx, dword [ebp - 0xc]
test eax, eax
je 0x409151
or byte [ebp + edi - 0x60], bl
inc edx
mov dword [ebp - 0xc], edx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 8]
inc esi
cmp esi, ebx
jl 0x4090aa
test edx, edx
je 0x409052
xor esi, esi
cmp dword [ebp - 0x10], 0
je 0x4091db
test ebx, ebx
jle 0x4091db
mov edi, dword [ebp - 0x10]
mov ecx, esi
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x409186
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, 0x80
sar eax, cl
mov ecx, esi
sar ecx, 3
mov dl, byte [ecx + edi]
test al, dl
je 0x4091d3
test byte [ebp + ecx - 0x40], al
je 0x4091cc
mov ecx, dword [esi*4 + 0x425388]
cmp dword [ecx + 0x5c], 1
jne 0x4091d3
cmp dword [ecx + 0x84], 2
jne 0x4091d3
call fcn.00407936
test eax, eax
je 0x4091d3
call fcn.0040dad4
and dword [eax], 0
jmp 0x4091d3
mov edi, eax
jmp 0x409154
not al
and al, dl
mov byte [ecx + edi], al
inc esi
cmp esi, ebx
jl 0x409177
mov edi, dword [ebp + 8]
test edi, edi
je 0x409244
xor eax, eax
mov esi, eax
test ebx, ebx
jle 0x409244
mov ecx, esi
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x4091f6
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, 0x80
sar eax, cl
mov ecx, esi
sar ecx, 3
mov dl, byte [ecx + edi]
test al, dl
je 0x40923f
test byte [ebp + ecx - 0x60], al
je 0x409238
mov ecx, dword [esi*4 + 0x425388]
cmp dword [ecx + 0x5c], 1
jne 0x40923f
cmp dword [ecx + 0x84], 2
jne 0x40923f
call fcn.00407936
test eax, eax
je 0x40923f
call fcn.0040dad4
and dword [eax], 0
jmp 0x40923f
not al
and al, dl
mov byte [ecx + edi], al
inc esi
cmp esi, ebx
jl 0x4091e7
mov eax, dword [ebp - 0xc]
jmp 0x408d49