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

Disassembly:
mov eax, 0x2009ea69
call fcn.2007d394
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
lea ebx, [esi + 0x25c]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [ebx]
cmp eax, 0x2710
jbe 0x2003fcad
call edi
mov dword [ebx], eax
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [esi + 0x10938]
push eax
lea ecx, [ebp - 0x20]
call fcn.200011c0
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x1097c]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 0x1097c]
je 0x2003faf5
add eax, 0xc
push eax
lea ecx, [ebp - 0x38]
call fcn.20020cb6
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
wait
mov ecx, dword [ebp - 0x38]
cmp byte [ecx + 0xcd], 0
jne 0x2003facc
fld dword [ecx + 0xf0]
fcomp dword [0x200a926c]
fnstsw ax
test ah, 0x41
jne 0x2003facc
cmp byte [ecx + 0xc0], 0
je 0x2003facc
movzx eax, word [ecx + 0xea]
cdq
add dword [ebp - 0x28], eax
adc dword [ebp - 0x24], edx
movzx eax, word [ecx + 0xe8]
cdq
add dword [ebp - 0x30], eax
adc dword [ebp - 0x2c], edx
inc dword [ebp - 0x18]
wait
jmp 0x2003fada
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x38]
call fcn.20001efb
lea ecx, [ebp - 0x14]
call fcn.200255a0
mov eax, dword [ebp - 0x14]
jmp 0x2003fa64
mov eax, dword [esi + 0x10988]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 0x10988]
je 0x2003fb91
add eax, 0xc
push eax
lea ecx, [ebp - 0x40]
call fcn.20020cb6
mov byte [ebp - 4], 4
mov byte [ebp - 4], 5
wait
mov ecx, dword [ebp - 0x40]
cmp byte [ecx + 0xcd], 0
jne 0x2003fb68
fld dword [ecx + 0xf0]
fcomp dword [0x200a926c]
fnstsw ax
test ah, 0x41
jne 0x2003fb68
cmp byte [ecx + 0xc0], 0
je 0x2003fb68
movzx eax, word [ecx + 0xea]
cdq
add dword [ebp - 0x28], eax
adc dword [ebp - 0x24], edx
movzx eax, word [ecx + 0xe8]
cdq
add dword [ebp - 0x30], eax
adc dword [ebp - 0x2c], edx
inc dword [ebp - 0x18]
wait
jmp 0x2003fb76
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x40]
call fcn.20001efb
lea ecx, [ebp - 0x14]
call fcn.200255a0
mov eax, dword [ebp - 0x14]
jmp 0x2003fb00
mov eax, dword [esi + 0x109ac]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 0x109ac]
je 0x2003fc2d
add eax, 0xc
push eax
lea ecx, [ebp - 0x48]
call fcn.20020cb6
mov byte [ebp - 4], 7
mov byte [ebp - 4], 8
wait
mov ecx, dword [ebp - 0x48]
cmp byte [ecx + 0x1e4], 0
jne 0x2003fc04
fld dword [ecx + 0xf0]
fcomp dword [0x200a926c]
fnstsw ax
test ah, 0x41
jne 0x2003fc04
cmp byte [ecx + 0xc0], 0
je 0x2003fc04
movzx eax, word [ecx + 0xea]
cdq
add dword [ebp - 0x28], eax
adc dword [ebp - 0x24], edx
movzx eax, word [ecx + 0xe8]
cdq
add dword [ebp - 0x30], eax
adc dword [ebp - 0x2c], edx
inc dword [ebp - 0x18]
wait
jmp 0x2003fc12
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x48]
call fcn.20001efb
lea ecx, [ebp - 0x14]
call fcn.200255a0
mov eax, dword [ebp - 0x14]
jmp 0x2003fb9c
or dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x20]
cmp edi, ebx
je 0x2003fc42
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [edi + 0x18]
mov ecx, esi
call fcn.2003f83a
cmp eax, ebx
jne 0x2003fc5b
mov dword [esi + 0x260], ebx
mov dword [esi + 0x264], ebx
jmp 0x2003fcad
cmp dword [ebp - 0x18], ebx
jle 0x2003fcad
imul eax, dword [ebp - 0x18]
cdq
mov ebx, eax
mov dword [ebp - 0x4c], edx
push 0
mov edi, 0x320
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.2007e650
push dword [ebp - 0x4c]
push ebx
push edx
push eax
call fcn.2007c9c0
mov dword [esi + 0x260], eax
push 0
push edi
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.2007e650
push dword [ebp - 0x4c]
push ebx
push edx
push eax
call fcn.2007c9c0
mov dword [esi + 0x264], eax
mov eax, dword [esi + 0x260]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [esi + 0x264]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8