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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov dword [ebp - 0x40], 0
push 4
push 0x2d64ca8
call fcn.10003990
test eax, eax
jne 0x1000aab8
mov eax, dword [0x2d64ca8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jbe 0x1000b229
mov edx, dword [ebp - 0xc]
add edx, 0x1c
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], 0
push 4
mov eax, dword [ebp - 0x44]
push eax
call fcn.10003990
test eax, eax
jne 0x1000aaef
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x1000b229
mov ecx, dword [ebp - 0xc]
add ecx, 0x14
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], 0
push 4
mov edx, dword [ebp - 0x4c]
push edx
call fcn.10003990
test eax, eax
jne 0x1000ab26
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jbe 0x1000b229
mov eax, dword [ebp - 0xc]
add eax, 0x680c
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], 0
push 1
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.10003990
test eax, eax
jne 0x1000ab8d
lea edx, [ebp - 0x58]
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0x1c], 0
jmp 0x1000ab72
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jge 0x1000ab8d
mov ecx, dword [ebp - 0xc4]
add ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x1c]
mov al, byte [edx]
mov byte [ecx], al
jmp 0x1000ab69
cmp dword [ebp - 0x58], 0
jbe 0x1000ab98
jmp 0x1000b229
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
jne 0x1000abaa
jmp 0x1000ac90
mov edx, dword [ebp - 0xc]
add edx, 0x3c0
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], 0
push 4
mov eax, dword [ebp - 0x5c]
push eax
call fcn.10003990
test eax, eax
jne 0x1000abd4
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x3bc
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], 0
push 4
mov edx, dword [ebp - 0x64]
push edx
call fcn.10003990
test eax, eax
jne 0x1000ac04
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x6c], 0
push 4
mov eax, dword [ebp - 0x24]
push eax
call fcn.10003990
test eax, eax
jne 0x1000ac28
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jbe 0x1000b229
mov dword [ebp - 0x74], 0
push 1
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.10003990
test eax, eax
jne 0x1000ac84
lea edx, [ebp - 0x74]
mov dword [ebp - 0xc8], edx
mov dword [ebp - 0x20], 0
jmp 0x1000ac69
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jge 0x1000ac84
mov ecx, dword [ebp - 0xc8]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x70]
add edx, dword [ebp - 0x20]
mov al, byte [edx]
mov byte [ecx], al
jmp 0x1000ac60
mov ecx, dword [ebp - 0x74]
cmp ecx, dword [ebp - 0x24]
jne 0x1000b229
mov dword [ebp - 0x78], 0
push 4
push 0x2d64ca8
call fcn.10003990
test eax, eax
jne 0x1000acb0
mov edx, dword [0x2d64ca8]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x1000b229
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], 0
push 4
mov edx, dword [ebp - 0x7c]
push edx
call fcn.10003990
test eax, eax
jne 0x1000ace7
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jbe 0x1000b229
mov dword [ebp - 4], 0
mov dword [ebp - 0x90], 0
mov byte [ebp - 5], 0
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], 0
push 4
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.10003990
test eax, eax
jne 0x1000ad42
mov edx, dword [ebp - 0x84]
mov eax, dword [edx]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 2
ja 0x1000b229
cmp dword [ebp + 8], 0
jle 0x1000aed0
movzx ecx, byte [0x1006bdb9]
test ecx, ecx
jne 0x1000aed0
mov dword [ebp - 0x8c], 0
push 4
push 0x2d7029c
call fcn.10003990
test eax, eax
jne 0x1000ad8e
mov edx, dword [0x2d7029c]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jbe 0x1000aed0
mov dword [ebp - 0x94], 0
push 4
push 0x2d702a8
call fcn.10003990
test eax, eax
jne 0x1000adcd
mov ecx, dword [0x2d702a8]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], 0
cmp dword [ebp - 4], 0x43000000
jbe 0x1000ae00
mov eax, dword [ebp - 4]
sub eax, 0x43000000
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
lea edx, [ecx + ecx + 0x1000000]
mov dword [ebp - 4], edx
jmp 0x1000ae1d
cmp dword [ebp - 4], 0x42000000
jbe 0x1000ae16
mov eax, dword [ebp - 4]
sub eax, 0x42000000
mov dword [ebp - 4], eax
jmp 0x1000ae1d
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jbe 0x1000aed0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
sub edx, 1
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 3
ja case.default.0x1000ae3f
mov eax, dword [ebp - 0x2c]
jmp dword [eax*4 + 0x1000b230]
mov dword [ebp - 0x14], 0
jmp case.default.0x1000ae3f
mov dword [ebp - 0x14], 0xf4240
jmp case.default.0x1000ae3f
mov dword [ebp - 0x14], 0x493e0
jmp case.default.0x1000ae3f
mov dword [ebp - 0x14], 0x186a0
cmp dword [ebp - 0x14], 0
jbe 0x1000ae7c
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp - 0x14]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov byte [0x1006bdb9], 1
mov byte [ebp - 5], 1
push 4
push 0x2d7029c
call fcn.10003a80
test eax, eax
jne 0x1000aed0
mov dword [ebp - 0x98], 0
push 4
push 0x2d7029c
call fcn.10003990
test eax, eax
jne 0x1000aebd
mov ecx, dword [0x2d7029c]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
cmp edx, dword [ebp - 4]
je 0x1000aed0
mov eax, dword [ebp - 4]
mov dword [0x2d7029c], eax
movzx ecx, byte [ebp + 0xc]
cmp ecx, 1
jne 0x1000aff5
mov edx, dword [0x1006bd70]
mov eax, dword [0x1006be04]
lea ecx, [eax + edx + 0x39]
mov dword [ebp - 0x30], ecx
push 1
mov edx, dword [ebp - 0x30]
push edx
call fcn.10003a80
test eax, eax
jne 0x1000afe7
mov dword [ebp - 0x9c], 0
push 1
mov eax, dword [ebp - 0x30]
push eax
call fcn.10003990
test eax, eax
jne 0x1000af54
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0x28], 0
jmp 0x1000af39
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 1
jge 0x1000af54
mov eax, dword [ebp - 0xcc]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x28]
mov dl, byte [ecx]
mov byte [eax], dl
jmp 0x1000af30
cmp dword [ebp - 0x9c], 0
je 0x1000afe7
mov dword [ebp - 0x18], 0
xor eax, eax
and eax, 0xff
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x34], al
xor eax, eax
shr eax, 8
and eax, 0xff
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 0x34], al
xor edx, edx
shr edx, 0x10
and edx, 0xff
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x34], dl
xor ecx, ecx
shr ecx, 0x18
and ecx, 0xff
mov edx, 1
imul eax, edx, 3
mov byte [ebp + eax - 0x34], cl
mov dword [ebp - 0x18], 0
jmp 0x1000afd0
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 1
jge 0x1000afe7
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp + eax - 0x34]
mov byte [edx], cl
jmp 0x1000afc7
push 5
push 0x14
push 0x39
call fcn.10006590
add esp, 0xc
movzx edx, byte [ebp - 5]
cmp edx, 1
jne 0x1000b002
jmp 0x1000b012
movzx eax, byte [0x1006bdb9]
test eax, eax
jne 0x1000b012
jmp 0x1000b229
cmp dword [ebp - 4], 0
jbe 0x1000b219
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xa4], 0
push 4
mov edx, dword [ebp - 0xa0]
push edx
call fcn.10003990
test eax, eax
jne 0x1000b052
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xd0], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x3c], eax
mov eax, 1
test eax, eax
je 0x1000b132
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3c]
cmp eax, 0x64
jbe 0x1000b087
jmp 0x1000b132
call fcn.10006880
cmp eax, 0x190
je 0x1000b09d
jmp 0x1000b132
mov ecx, dword [ebp - 0xd0]
add ecx, 0x680c
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xac], 0
push 4
mov edx, dword [ebp - 0xa8]
push edx
call fcn.10003990
test eax, eax
jne 0x1000b0d9
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax]
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xac], 0
jbe 0x1000b0e4
jmp 0x1000b132
mov edx, dword [ebp - 0x10]
add edx, 0x4c
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xb4], 0
push 4
mov eax, dword [ebp - 0xb0]
push eax
call fcn.10003990
test eax, eax
jne 0x1000b11a
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx]
mov dword [ebp - 0xb4], edx
cmp dword [ebp - 0xb4], 0
jbe 0x1000b125
jmp 0x1000b132
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000b067
mov dword [ebp - 0x38], 0
push 4
push 0x2d702a0
call fcn.10003990
test eax, eax
jne 0x1000b151
mov eax, dword [0x2d702a0]
mov dword [ebp - 0x38], eax
push 4
push 0x2d7029c
call fcn.10003a80
test eax, eax
jne 0x1000b19a
mov dword [ebp - 0xb8], 0
push 4
push 0x2d7029c
call fcn.10003990
test eax, eax
jne 0x1000b187
mov ecx, dword [0x2d7029c]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb8]
cmp edx, dword [ebp - 0x38]
je 0x1000b19a
mov eax, dword [ebp - 0x38]
mov dword [0x2d7029c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x3c], eax
mov ecx, 1
test ecx, ecx
je 0x1000b219
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3c]
cmp eax, 0x1f4
jbe 0x1000b1be
jmp 0x1000b219
call fcn.10006880
cmp eax, 0x190
je 0x1000b1ce
jmp 0x1000b219
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xc0], 0
push 4
mov eax, dword [ebp - 0xbc]
push eax
call fcn.10003990
test eax, eax
jne 0x1000b204
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ecx]
mov dword [ebp - 0xc0], edx
cmp dword [ebp - 0xc0], 2
jbe 0x1000b20f
jmp 0x1000b219
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000b1a3
movzx eax, byte [ebp - 5]
cmp eax, 1
jne 0x1000b229
mov byte [0x1006bdb9], 0
mov esp, ebp
pop ebp
ret