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

Disassembly:
push 0xffffffffffffffff
push 0x1015c8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
xor ebx, ebx
cmp byte [esi + 8], bl
je 0x1002d9e6
call fcn.1002ec60
mov ecx, dword [esi + 4]
push eax
xor edi, edi
call fcn.100303e0
mov edx, dword [esp + 0x48]
cmp edx, ebx
je 0x1002da06
cmp ebp, ebx
jle 0x1002da06
push esi
mov ecx, ebp
call fcn.1002d740
test eax, eax
jne 0x1002da06
or eax, 0xffffffff
jmp 0x1002dc28
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x4c], bl
call edi
push 0x40
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], vtable.CBXLQueue.0
call fcn.10046982
add esp, 4
push 0x40
push ebx
push eax
mov dword [esp + 0x30], eax
call fcn.10057070
xor ebp, ebp
add esp, 0xc
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x3c], ebx
call fcn.1002ec60
mov ebx, dword [esi + 4]
push eax
call fcn.1002f7d0
mov byte [esp + 0x48], al
call edi
sub eax, dword [esp + 0x1c]
cmp eax, 0xbb8
jge 0x1002dbed
mov ebx, dword [esp + 0x50]
test ebp, ebp
jne 0x1002dae6
lea eax, [ebp + 1]
cmp ebx, 0xffffffff
je 0x1002da87
mov eax, ebx
cmp byte [esp + 0x48], 0
je 0x1002dabe
push 0
push eax
push esi
call fcn.1002d860
test eax, eax
jne 0x1002daa8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002dbb6
cmp byte [esi + 8], 0
je 0x1002dbb6
push 0
push 0xa
push eax
lea eax, [esp + 0x2c]
push eax
jmp 0x1002dad2
cmp byte [esi + 8], 0
je 0x1002dbb6
push 0
push 0x32
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.1002ec60
mov edi, dword [esi + 4]
push eax
call fcn.1002ff60
mov ebp, dword [esp + 0x28]
test ebp, ebp
jbe 0x1002dbb6
mov esi, 1
cmp ebp, esi
jae 0x1002daf7
mov esi, ebp
mov edi, dword [esp + 0x24]
push esi
lea edx, [esp + 0x50]
push edi
push edx
call fcn.1005a380
add esp, 0xc
cmp esi, ebp
jae 0x1002db1f
mov ecx, ebp
mov eax, edi
sub ecx, esi
mov dl, byte [eax + esi]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x1002db14
mov eax, dword [esp + 0x2c]
sub ebp, esi
sub eax, ebp
push eax
lea ecx, [edi + ebp]
push 0
push ecx
mov dword [esp + 0x34], ebp
call fcn.10057070
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x58]
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov byte [eax + esi], cl
inc eax
xor edi, edi
add esp, 0xc
mov dword [esp + 0x18], eax
cmp edx, edi
je 0x1002dba3
cmp ebx, 0xffffffff
jne 0x1002db7c
mov eax, dword [esp + 0x14]
cmp cl, byte [eax + edx]
jne 0x1002db6c
inc dword [esp + 0x14]
jmp 0x1002db70
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x58]
je 0x1002dbe9
jmp 0x1002dbb2
cmp eax, ebx
jl 0x1002db8f
mov esi, dword [esp + 0x14]
cmp cl, byte [esi + edx]
jne 0x1002db8f
inc dword [esp + 0x14]
jmp 0x1002db93
mov dword [esp + 0x14], edi
cmp eax, ebx
jl 0x1002dbb2
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x58]
je 0x1002dbe9
jmp 0x1002dbb2
cmp ebx, 0xffffffff
jne 0x1002dbae
cmp ebp, edi
je 0x1002dbe9
jmp 0x1002dbb2
cmp eax, ebx
jge 0x1002dbcd
mov esi, dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x1c]
cmp eax, 0xbb8
jl 0x1002da75
jmp 0x1002dbed
mov edi, dword [esp + 0x18]
lea ecx, [edi + esi]
mov eax, ebp
lea esi, [esp + 0x20]
call fcn.1001ef80
mov ebp, dword [esp + 0x28]
add edi, eax
mov dword [esp + 0x18], edi
mov esi, dword [esp + 0x44]
cmp byte [esi + 8], 0
je 0x1002dc03
call fcn.1002ec60
mov ecx, dword [esi + 4]
push eax
xor edi, edi
call fcn.100303e0
test ebp, ebp
jbe 0x1002dc17
mov eax, dword [esp + 0x24]
push ebp
push 0
push eax
call fcn.10057070
add esp, 0xc
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1004698d
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x1c