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

Disassembly:
pop esi
add esi, 0x2b
cmp esi, 0
je 0x1002cee0
jmp esi
cmp dword [0x108d8b61], 0x81ffffff
shr dword [eax + 1], 0
add al, ch
jl 0x1002ceed
add byte [eax], al
call 0x1003ca70
add byte [eax], al
jmp 0x1002cf38
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x14], 0
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
call fcn.1002abb0
mov ecx, dword [ebp - 0xf0]
add ecx, 0x168
call fcn.10030160
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xf0]
cmp dword [ecx + 0x10], 0
je 0x1002cfa2
jmp 0x1002d9af
push 0x14
lea edx, [ebp - 0x2c]
push edx
call fcn.10031af0
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xf0]
add eax, 0xde
push eax
mov ecx, dword [ebp - 0xf0]
add ecx, 0x7a
push ecx
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0xf0]
call fcn.1002a4b0
aam 0xff
dec dword [ecx + 0x7d83ec45]
in al, dx
add byte [edi], cl
test byte [edi + 1], bl
add byte [eax], al
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0xf0]
call fcn.1002c310
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x1002d144
add byte [eax], al
mov ecx, dword [ebp - 0xf0]
add ecx, 0x168
call fcn.10041980
mov dword [ebp - 0x58], 1
mov ecx, dword [ebp - 0xf0]
add ecx, 0x168
call fcn.100330d0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 0x13668]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0xf0]
add ecx, 0x238
call fcn.1002ab70
test eax, eax
jbe 0x1002d244
mov ecx, dword [ebp - 0xf0]
add ecx, 0x238
call fcn.1002ab70
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0x6c], 0
jbe 0x1002d1c1
mov edx, dword [ebp - 0xc0]
add edx, 1
mov dword [ebp - 0xc0], edx
pushal
call fcn.1002d1db
mov dword fs:[0], ecx
add esp, 0x10
ret
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x64], 5
mov edx, dword [ebp - 0xf0]
cmp dword [edx + 0x250], 0
jbe 0x1002d282
mov eax, dword [ebp - 0xf0]
cmp dword [eax + 0x250], 0xb
jae 0x1002d282
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ecx + 0x250]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0xf0]
cmp dword [eax + 0x13690], 0x3f
jne 0x1002d369
pushal
call fcn.1002d2b5
shr eax, 1
pop ebp
ret 8
mov eax, dword [ebp - 0xf0]
cmp dword [eax + 0x13690], 0x43
jne 0x1002d3cd
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], 2
pushal
call fcn.1002d39a
add esp, 0x24
ret
mov ecx, dword [ebp - 0xbc]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 0x13690]
push ecx
mov ecx, dword [ebp - 0xf0]
add ecx, 0x15a14
call fcn.10046f40
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x1002d485
mov edx, dword [ebp - 0xf0]
mov dword [edx + 0x10], 1
mov dword [ebp - 0x58], 0
jmp 0x1002d88a
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xf0]
add ecx, 0x15a14
call 0x10047570
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x1002d52b
mov ecx, dword [ebp - 0xf0]
mov dword [ecx + 0x10], 1
mov dword [ebp - 0x58], 0
jmp 0x1002d88a
mov dword [ebp - 0x60], 0
pushal
call fcn.1002d54c
mov dword fs:[0], ecx
add esp, 0x10
ret
cmp dword [ebp - 0x58], 0
jne 0x1002d938
pushal
call fcn.1002d8af
pop ecx
ret
mov eax, dword [ebp - 0xf0]
mov dword [eax + 0x15bd4], 0
mov ecx, dword [ebp - 0xf0]
mov dword [ecx + 0x15bcc], 0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
pushal
call fcn.1002d97a
mov eax, 0x403248
ret