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

Disassembly:
push 0xffffffffffffffff
push 0x1007dfa0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10097060]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax + 0x59774]
cmp dword [ebx + 0xa4], 0
jne 0x100485e9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x59260]
cmp eax, 0x1f4
jbe 0x100485e9
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x354], 0
je 0x10048434
lea eax, [esp + 0x14]
push eax
mov ecx, 0x1008a628
call fcn.10001a30
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0x14]
add ecx, 0xc
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov esi, esp
mov dword [esp + 0x30], esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.1004a5b0
mov edi, eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov dword [esp + 0x2c], edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100483ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x10048459
mov eax, edi
call fcn.10059b90
cmp dword [edi + 0x14], 0
jne 0x10048459
mov esi, dword [edi]
call fcn.10064990
test eax, eax
je 0x10048459
mov edi, dword [edi]
mov eax, ebx
call fcn.1004a950
test eax, eax
jne 0x10048459
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
mov ecx, ebx
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x59260], eax
jmp 0x100485e9
cmp dword [eax + 0x358], 0
je 0x10048459
lea eax, [esp + 0x14]
push eax
mov ecx, 0x1008a634
call fcn.10001a30
mov dword [esp + 0x24], 1
jmp 0x1004838f
mov eax, ebx
call fcn.1004aa20
test eax, eax
je 0x10048506
push 3
mov eax, ebx
call fcn.1004e410
test eax, eax
jne 0x10048486
push 4
mov eax, ebx
call fcn.1004e410
test eax, eax
je 0x10048506
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x1004849c
mov eax, dword [ebx + 0x34]
imul eax, eax, 0x64
xor edx, edx
div ecx
cmp eax, 0xf
jbe 0x10048506
lea eax, [esp + 0x2c]
push eax
mov ecx, 0x1008a64c
call fcn.10001a30
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x28], 2
mov ecx, dword [ebp + 0x14]
add ecx, 0xc
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.1004a5b0
mov esi, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x10048506
mov eax, esi
call fcn.10059b90
mov eax, dword [esi]
push eax
jmp 0x1004841a
mov ecx, dword [ebx + 0x64]
test ecx, ecx
je 0x100485e9
mov eax, dword [ebx + 0x30]
imul eax, eax, 0x64
xor edx, edx
div ecx
cmp eax, 0x50
jae 0x100485e9
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x1004853e
mov eax, dword [ebx + 0x34]
imul eax, eax, 0x64
xor edx, edx
div ecx
cmp eax, 0x12
jbe 0x100485e9
lea eax, [esp + 0x18]
push eax
mov ecx, str.WIQs
call fcn.10001a30
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x28], 3
mov ecx, dword [ebp + 0x14]
add ecx, 0xc
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.1004a5b0
mov edi, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call fcn.1001f1f0
test edi, edi
je 0x100485e9
mov eax, edi
call fcn.10059b90
mov esi, dword [edi]
call fcn.10064990
test eax, eax
je 0x100485e9
mov eax, edi
call fcn.1002a6c0
test eax, eax
jne 0x100485e9
cmp dword [edi + 0x14], eax
jne 0x100485e9
push ebx
call fcn.10004080
call fcn.1004ad60
mov edx, dword [ebx]
mov eax, dword [edi]
mov edx, dword [edx + 0x14]
push eax
mov ecx, ebx
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x7d0
mov dword [ebp + 0x59260], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4