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

Disassembly:
mov eax, 0x2009f228
call fcn.2007d394
sub esp, 0xe4
mov eax, dword [0x200cc84c]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xbc], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x18], ebx
jne 0x2004b0ac
xor esi, esi
jmp 0x2004b591
lea esi, [edi + 0x10c18]
inc dword [esi + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x18]
push ebx
call fcn.20021841
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 0x18]
dec dword [esi + 0x18]
lea eax, [ebp - 0xdc]
push eax
add ecx, 0xb4
call fcn.20034401
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x2004b0f5
mov eax, dword [eax + 4]
jmp 0x2004b0f8
add eax, 4
push eax
lea ecx, [ebp - 0xe4]
call fcn.20004f37
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0xdc]
call fcn.2000275e
push 0
push 0x200a9aec
lea ecx, [ebp - 0xe4]
call fcn.20008c71
mov eax, dword [ebp + 0x18]
cmp ebx, dword [eax + 0x7c]
jge 0x2004b580
push dword [ebp + 0x14]
lea ebx, [edi + 0x877c]
push dword [ebp - 0xbc]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.2001bcea
and dword [ebp - 0xe8], 0
and dword [ebp - 0xe0], 0
push eax
mov ecx, ebx
mov dword [ebp - 0xbc], eax
call fcn.2001bb16
mov ebx, eax
test ebx, ebx
je 0x2004b580
cmp dword [ebx + 0xf0], 0
je 0x2004b580
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xb0], eax
call fcn.2003ab13
mov byte [ebp - 4], 4
push 0x80
lea ecx, [ebp - 0xac]
call fcn.2003ab2e
push 1
lea ecx, [ebp - 0xac]
call fcn.2003ac10
and dword [ebp - 0xb8], 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x280]
mov dword [ebp - 0xb4], ecx
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [eax + 0x27c]
call fcn.2000296c
mov ecx, dword [ebp - 0xb4]
cmp dword [eax], ecx
je 0x2004b2df
lea ecx, [ebx + 0x40]
call fcn.2003acb4
fstp dword [ebp - 0xb4]
lea ecx, [edi + 0x194f0]
call fcn.20076616
fld dword [ebp - 0xb4]
fcomp dword [0x200a9ae8]
mov ecx, eax
fnstsw ax
test ah, 0x41
jne 0x2004b234
lea ecx, [edi + 0x194f0]
call fcn.2007661e
jmp 0x2004b2b2
fld dword [ebp - 0xb4]
fcomp dword [0x200a9ae4]
fnstsw ax
test ah, 0x41
jne 0x2004b254
lea ecx, [edi + 0x194f0]
call fcn.20076626
jmp 0x2004b2b2
fld dword [ebp - 0xb4]
fcomp dword [0x200a9ae0]
fnstsw ax
test ah, 0x41
jne 0x2004b274
lea ecx, [edi + 0x194f0]
call fcn.2007662e
jmp 0x2004b2b2
fld dword [ebp - 0xb4]
fcomp dword [0x200a9adc]
fnstsw ax
test ah, 0x41
jne 0x2004b294
lea ecx, [edi + 0x194f0]
call fcn.20076636
jmp 0x2004b2b2
fld dword [ebp - 0xb4]
fcomp dword [0x200a9ad8]
fnstsw ax
test ah, 0x41
jne 0x2004b2b4
lea ecx, [edi + 0x194f0]
call fcn.2007663e
mov ecx, eax
push ecx
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xb0]
lea eax, [ebp - 0xac]
push eax
lea ecx, [edi + 0x877c]
call fcn.2001f281
test eax, eax
jne 0x2004b322
cmp dword [ebp - 0xb8], 3
jg 0x2004b571
push dword [ebp - 0xb0]
lea ebx, [edi + 0x877c]
mov ecx, ebx
call fcn.2001bf2f
test eax, eax
mov dword [ebp - 0xb0], eax
je 0x2004b571
push eax
mov ecx, ebx
call fcn.2001bb16
inc dword [ebp - 0xb8]
mov ebx, eax
jmp 0x2004b1c3
test ebx, ebx
je 0x2004b571
push 0x64
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0xdc]
call fcn.200030b0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xd4], eax
push 0
lea ecx, [ebp - 0xdc]
mov byte [eax], 0
call fcn.200012d7
push 0x43
lea ecx, [ebp - 0xdc]
call fcn.20001294
push 0
lea ecx, [ebp - 0xdc]
call fcn.200012d7
push 0xeb
lea ecx, [ebp - 0xdc]
call fcn.20001294
mov eax, dword [ebp - 0xd4]
push 0
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xb0], eax
call fcn.200012d7
mov eax, dword [ebp - 0xd4]
push dword [edi + 0x10b14]
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xbc], eax
call fcn.2000133b
mov eax, dword [ebp + 0x18]
push dword [eax + 0x24c]
lea ecx, [ebp - 0xdc]
call fcn.2000133b
mov eax, dword [ebp + 0x18]
push dword [eax + 0x248]
lea ecx, [ebp - 0xdc]
call fcn.2000133b
lea ecx, [edi + 0x877c]
call fcn.2001a42e
push dword [ebx + 0x18]
lea ecx, [edi + 0x19050]
mov dword [ebp - 0xb8], eax
call fcn.20002dbb
test eax, eax
jne 0x2004b40e
test edx, edx
je 0x2004b562
push edx
push eax
lea ecx, [ebp - 0xdc]
call fcn.2000d880
push dword [ebp - 0xb8]
lea ecx, [ebp - 0xdc]
call fcn.2000133b
push dword [ebp - 0xe8]
lea ecx, [ebp - 0xdc]
call fcn.2000133b
push dword [ebp - 0xe0]
lea ecx, [ebp - 0xdc]
call fcn.2000133b
mov eax, dword [ebp - 0xd4]
sub eax, dword [ebp - 0xbc]
push 0x18
push eax
push dword [ebp - 0xbc]
call fcn.2001762c
mov ecx, dword [ebp - 0xb0]
mov word [ecx], ax
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd4]
sub eax, ecx
lea edx, [eax - 4]
mov word [ecx], dx
movzx ecx, ax
mov eax, dword [ebp + 0x18]
xor edx, edx
mov dx, word [eax + 0xb8]
add esp, 0xc
mov dword [ebp - 0xb0], ecx
push edx
push dword [eax + 0xb4]
push ecx
push dword [ebp - 0xd8]
lea ecx, [edi + 0x10b5c]
call fcn.2007625c
test eax, eax
je 0x2004b562
mov eax, dword [ebp + 0x18]
inc dword [eax + 0x78]
mov eax, dword [ebp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xbc], eax
call edi
mov ecx, dword [ebp - 0xbc]
mov dword [ecx + 0x220], eax
inc dword [ebx + 0xa8]
inc dword [esi + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call edi
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xf0], ecx
mov ecx, dword [ebp + 0x18]
push eax
lea eax, [ebp - 0xc0]
push eax
add ecx, 0x6c
call fcn.2001d3d6
mov eax, dword [ebp + 0x18]
inc byte [eax + 0x81]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0xb0]
mov ecx, dword [ebp + 0x18]
dec dword [esi + 0x18]
call fcn.20020954
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xdc]
call fcn.200030f4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
call fcn.2003ab27
xor esi, esi
inc esi
jmp 0x2004b582
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xdc]
call fcn.200030f4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
call fcn.2003ab27
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe4]
call fcn.200026ee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.20001efb
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret 0x18