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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd8a6
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x663000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xd8], esi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xd0]
push str.srl::System::SetConfiguration
mov byte [ebp - 0xd4], al
call fcn.00415110
mov dword [ebp - 4], 1
call fcn.0041ca00
cmp dword [eax + 4], 4
jl 0x40f99c
push ecx
lea ecx, [ebp - 0xd4]
call fcn.00412f80
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x40ff8b
call fcn.0041ca00
push ecx
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0xdc], eax
call fcn.00415de0
xor eax, eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
push str.TRACE
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00415110
xor edx, edx
mov dword [ebp - 0x40], 0
mov edi, 7
mov dword [ebp - 0x30], edx
xor eax, eax
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 4
xor esi, esi
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0xc], esi
jle 0x40fa80
cmp esi, 0xa
jge 0x40fa80
mov eax, edi
lea ecx, [ebp - 0x40]
sub eax, edx
cmp eax, 2
jb 0x40fa51
cmp edi, 8
lea eax, [edx + 2]
mov dword [ebp - 0x30], eax
cmovae ecx, dword [ebp - 0x40]
mov eax, dword [0x6315a0]
mov dword [ecx + edx*2], eax
xor eax, eax
mov word [ecx + edx*2 + 4], ax
jmp 0x40fa6c
push 2
push 0x6315a0
mov byte [ebp - 0xe4], 0
push dword [ebp - 0xe4]
push 2
call fcn.0041d780
mov eax, dword [ebp - 0xdc]
inc esi
cmp esi, dword [eax + 0xc]
jge 0x40fa80
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
jmp 0x40fa22
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 6
call fcn.005bb7bb
lea eax, [ebp - 0x28]
push 0xb
push eax
call fcn.005bb8c6
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x70]
push eax
call fcn.00415110
push ecx
lea ecx, [ebp - 0x288]
call fcn.00415de0
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0xdc]
cmp dword [esi + 0x10], 0
jne 0x40fb03
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [ebp - 0x278]
mov dword [esi + 0x10], eax
call fcn.00410290
jmp 0x40fb33
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x10]
lea ecx, [ebp - 0x278]
movd xmm0, eax
cvtdq2pd xmm1, xmm0
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x6376f0]
divsd xmm1, qword [0x637690]
call fcn.0041d1a0
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x270]
call fcn.00416850
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x40fb83
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fb79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4101e9
push ecx
push edx
call fcn.005af9e7
add esp, 8
movups xmm0, xmmword [ebp - 0xb8]
xor eax, eax
lea ecx, [ebp - 0x288]
mov word [ebp - 0xb8], ax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0xa8]
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov byte [ebp - 4], 6
call fcn.00415cc0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0x2040
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xe0]
push eax
call fcn.005b1d32
mov ecx, dword [ebp - 0x1c8]
lea edx, [ebp - 0x1c8]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, edx
push ecx
call eax
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae edx, dword [ebp - 0x70]
lea ecx, [ebp - 0x1c8]
call fcn.00413940
mov esi, eax
lea eax, [ebp - 0xf0]
push 0x10
push eax
call fcn.005b1d32
mov edx, 0x6311e0
mov ecx, esi
mov edi, eax
call fcn.00413680
push dword [edi + 4]
mov esi, eax
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
push ecx
mov ecx, dword [edi]
call ecx
push 0
lea eax, [ebp - 0x108]
push 6
push eax
call fcn.005b1d60
mov edx, eax
mov ecx, esi
call fcn.0041d750
mov esi, eax
mov eax, 0x30
push 0
push 3
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov word [ecx + esi + 0x40], ax
lea eax, [ebp - 0x118]
push eax
call fcn.005b1d46
mov edx, eax
mov ecx, esi
call fcn.0041d750
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae edx, dword [ebp - 0x58]
mov ecx, eax
call fcn.00413940
add esp, 0x40
mov edi, eax
push 0
push 5
lea eax, [ebp - 0x128]
push eax
call fcn.005b1d60
mov edx, 0x6311e0
mov ecx, edi
mov esi, eax
call fcn.00413680
mov edx, esi
mov ecx, eax
call fcn.0041d750
mov esi, eax
mov eax, 0x20
push 0x40
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov word [ecx + esi + 0x40], ax
lea eax, [ebp - 0xf8]
push eax
call fcn.005b1d32
mov ecx, dword [esi]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, esi
push ecx
call eax
cmp dword [ebp - 0x74], 8
lea edx, [ebp - 0x88]
push dword [ebp - 0x78]
cmovae edx, dword [ebp - 0x88]
mov ecx, esi
call fcn.00413940
add esp, 0x20
mov edx, 0x6315e0
mov ecx, eax
call fcn.00413680
mov edx, dword [ebp - 0xe4]
mov ecx, eax
call fcn.00413680
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x66d948]
cmp eax, dword [ecx + 4]
jg 0x4101ee
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00416850
mov byte [ebp - 4], 9
mov ecx, dword [0x663aec]
cmp ecx, 8
jb 0x40fda2
mov edx, dword [0x663ad8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fd98
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410242
push ecx
push edx
call fcn.005af9e7
add esp, 8
movups xmm0, xmmword [ebp - 0xa0]
xor eax, eax
mov word [ebp - 0xa0], ax
movups xmmword [0x663ad8], xmm0
movq xmm0, qword [ebp - 0x90]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x44]
movq qword [0x663ae8], xmm0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
cmp ecx, 8
jb 0x40fe1b
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fe11
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410242
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 8
jb 0x40fe6d
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fe63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410242
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ecx, 8
jb 0x40febf
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40feb5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410242
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x40ff14
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ff0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410242
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 1
call fcn.00415cc0
call fcn.0041ca00
cmp dword [0x663aec], 8
mov edx, 0x663ad8
push dword [0x663ae8]
cmovae edx, dword [0x663ad8]
mov ecx, eax
call fcn.00413940
mov edx, str.config
mov ecx, eax
call fcn.004121f0
mov edi, dword [ebp - 0xe8]
mov esi, eax
mov ecx, esi
mov edx, dword [edi]
call fcn.00413680
push esi
call fcn.00414970
mov esi, dword [ebp - 0xd8]
add esp, 8
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x4101c1
call fcn.0040cfd9
mov ecx, eax
test ecx, ecx
je 0x410247
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 0xa
push eax
push str.__ReferrerID_
mov edx, str._ReferrerID_
mov ecx, edi
call fcn.0040e3a0
add esp, 8
test al, al
je 0x40ffee
lea eax, [ebp - 0xdc]
lea ecx, [esi + 0x10]
push eax
call fcn.004106c0
mov esi, dword [ebp - 0xd8]
lea eax, [ebp - 0xdc]
mov edx, str._DetectionIDs_
push eax
push str.__DetectionIDs_
mov ecx, edi
call fcn.0040e3a0
add esp, 8
test al, al
je 0x4100f5
push dword [ebp - 0xdc]
lea ecx, [ebp - 0xb8]
call fcn.00407953
mov esi, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp - 0xd8]
push dword [eax + 0x10]
call fcn.00407953
push esi
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0xd8]
push eax
lea ecx, [esi + 0x2c]
call fcn.00418580
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x8c]
cmp ecx, 8
jb 0x410094
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41008a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410251
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
cmp ecx, 8
jb 0x4100f5
mov edx, dword [ebp - 0xb8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4100eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410251
push ecx
push edx
call fcn.005af9e7
add esp, 8
lea eax, [ebp - 0xdc]
add esi, 0x64
push eax
push str.__ApplicationID_
mov edx, str._ApplicationID_
mov dword [ebp - 0xe8], esi
mov ecx, edi
call fcn.0040e3a0
add esp, 8
test al, al
je 0x410130
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
push 0x116ff
call fcn.0041aa50
call fcn.0040cfd9
mov ecx, eax
test ecx, ecx
je 0x410256
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0xd
push eax
push str.__SystemInfo_
mov edx, str._SystemInfo_
mov ecx, edi
call fcn.0040e3a0
mov esi, dword [ebp - 0xd8]
add esp, 8
test al, al
je 0x410184
mov ecx, dword [ebp - 0xe8]
push esi
call fcn.0041aeb0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0xa
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4101a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xdc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4101c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xd4]
call fcn.00414a10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af765
mov esp, ebp
pop ebp
ret 4
call fcn.005b681f
push 0x66d948
call fcn.005afb28
add esp, 4
cmp dword [0x66d948], 0xffffffff
jne 0x40fd4c
push 0x5f3ee0
mov dword [0x663ad8], 0
mov dword [0x663ae8], 0
mov dword [0x663aec], 7
call fcn.005af9af
push 0x66d948
call fcn.005afade
add esp, 8
jmp 0x40fd4c
call fcn.005b681f
push 0x80004005
call fcn.0040238e
call fcn.005b681f
push 0x80004005
call fcn.0040238e
int3