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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100def83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x354
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebx]
mov esi, dword [0x101344b4]
mov dword [ebp - 0x14], esi
mov eax, dword [eax + 0x40]
call eax
test al, al
je 0x1008d1df
call fcn.10039520
push eax
mov ecx, ebx
call fcn.1006ec60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x8b4]
cmp eax, 0x5dc
jbe 0x1008cc27
mov eax, dword [esi + 0x8b0]
inc eax
mov dword [esi + 0x8b0], eax
cmp eax, 4
jne 0x1008cc1b
mov dword [esi + 0x8b0], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x8b4], eax
mov ebx, dword [esi + 0x8b0]
xor edx, edx
mov dword [ebp - 0x20], edx
cmp dword [esi + ebx*4], edx
jbe 0x1008d1d9
mov ecx, 0x45
add esi, 0x498
mov dword [ebp + 8], ecx
mov dword [ebp - 0x1c], esi
nop dword [eax]
cmp ecx, 0x2fd
jge 0x1008d1d9
lea eax, [edx + ebx*2]
add eax, ebx
imul esi, eax, 0xb8
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + eax + 0xa0]
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x1008ccc1
mov edx, dword [0x10148394]
push 0xffffffffffffffff
mov eax, dword [edx]
mov dword [ebp - 0x28], 0x40000000
mov dword [ebp - 0x24], 0
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp + 8]
add eax, 0xffffffbd
movd xmm0, eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xb4
push 0
add eax, esi
cvtdq2ps xmm0, xmm0
push eax
mov eax, dword [ebp - 0x10]
movss dword [ebp - 0x2c], xmm0
push dword [eax]
push edx
call ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + eax + 0x58]
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x1008cd13
mov edx, dword [0x10148394]
push 0xffffffffffffffff
mov eax, dword [edx]
mov dword [ebp - 0x34], 0x40000000
mov dword [ebp - 0x30], 0
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp + 8]
add eax, 0xffffffdf
movd xmm0, eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x6c
push 0
add eax, esi
cvtdq2ps xmm0, xmm0
push eax
mov eax, dword [ebp - 0x10]
movss dword [ebp - 0x38], xmm0
push dword [eax]
push edx
call ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [esi + eax + 0x7c]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1008cd5f
mov edx, dword [0x10148394]
movd xmm0, dword [ebp + 8]
push 0xffffffffffffffff
cvtdq2ps xmm0, xmm0
mov eax, dword [edx]
mov dword [ebp - 0x40], 0x40000000
mov dword [ebp - 0x3c], 0
mov ecx, dword [eax + 0x24]
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x90
movss dword [ebp - 0x44], xmm0
push 0
add eax, esi
push eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push edx
call ecx
push 0x190
lea eax, [ebp - 0x360]
push 0
push eax
call fcn.100b3430
mov edx, dword [ebp - 0x14]
add esp, 0xc
add edx, 0x18
add edx, esi
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008cd85
sub ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x360]
push 0x64
push eax
push ecx
push edx
push 0
push 0x36a
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x14]
push 1
mov edx, dword [0x10148394]
push dword [esi + eax + 0x14]
mov eax, dword [ebp + 8]
push 0x100
push 0
push 0
add eax, 0xa
push 9
push eax
lea eax, [ebp - 0x360]
push 0xffffffffffffffff
push eax
mov eax, dword [0x1014839c]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x10]
call fcn.100392a0
mov eax, dword [0x1014839c]
lea edx, [ebp - 0x360]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
call fcn.10039430
add esp, 0x20
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x16c]
call fcn.10020120
mov dword [ebp - 4], 0
lea esi, [ebp - 0x16c]
mov ecx, dword [ebp - 0x16c]
sub esp, 8
add esi, dword [ecx + 4]
lea ecx, [ebp - 0x5c]
call fcn.100257a0
mov byte [ebp - 4], 1
mov ecx, esi
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.100205a0
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x1008ce53
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1008ce53
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x1008ce71
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1008ce71
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov esi, dword [ebp - 0x1c]
test ebx, ebx
jne 0x1008ceaa
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x148]
and eax, 0xffffefff
or eax, 0x2000
mov dword [ebp + ecx - 0x148], eax
push dword [esi - 0x45c]
push dword [esi - 0x460]
jmp 0x1008cf3d
cmp ebx, 1
jne 0x1008cede
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x148]
and eax, 0xffffefff
or eax, 0x2000
mov dword [ebp + ecx - 0x148], eax
push dword [esi - 0x22c]
push dword [esi - 0x230]
jmp 0x1008cf3d
cmp ebx, 2
jne 0x1008cf0b
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x148]
and eax, 0xffffefff
or eax, 0x2000
mov dword [ebp + ecx - 0x148], eax
push dword [esi + 4]
push dword [esi]
jmp 0x1008cf3d
cmp ebx, 3
jne 0x1008cf48
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x148]
and eax, 0xffffefff
or eax, 0x2000
mov dword [ebp + ecx - 0x148], eax
push dword [esi + 0x234]
push dword [esi + 0x230]
lea ecx, [ebp - 0x15c]
call fcn.1005f3b0
push 0x64
lea eax, [ebp - 0x1d0]
push 0
push eax
call fcn.100b3430
add esp, 0xc
test ebx, ebx
jne 0x1008cfb3
mov byte [ebp - 4], 2
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x154]
call fcn.10021600
or edi, 1
lea eax, [ebp - 0x74]
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x60], 0xf
cmova eax, dword [ebp - 0x74]
push eax
lea eax, [ebp - 0x1d0]
push str._s_D._SP
push eax
call fcn.100226a0
and edi, 0xfffffffe
add esp, 0xc
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x74]
call fcn.10025710
mov eax, 0xff2bff00
jmp 0x1008d0ee
cmp ebx, 1
jne 0x1008d019
mov byte [ebp - 4], 3
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x154]
call fcn.10021600
or edi, 2
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x78], 0xf
cmova eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0x1d0]
push str._s_D._DE
push eax
call fcn.100226a0
and edi, 0xfffffffd
add esp, 0xc
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.10025710
mov eax, 0xffffff00
jmp 0x1008d0ee
cmp ebx, 2
jne 0x1008d07f
mov byte [ebp - 4], 4
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x154]
call fcn.10021600
or edi, 4
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x90], 0xf
cmova eax, dword [ebp - 0xa4]
push eax
lea eax, [ebp - 0x1d0]
push str._s_S._SP
push eax
call fcn.100226a0
and edi, 0xfffffffb
add esp, 0xc
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.10025710
mov eax, 0xff87ff1e
jmp 0x1008d0ee
cmp ebx, 3
jne 0x1008d0de
mov byte [ebp - 4], 5
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x154]
call fcn.10021600
or edi, 8
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0xa8], 0xf
cmova eax, dword [ebp - 0xbc]
push eax
lea eax, [ebp - 0x1d0]
push str._s_S._DE
push eax
call fcn.100226a0
and edi, 0xfffffff7
add esp, 0xc
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.10025710
cmp ebx, 3
mov eax, 0xff2bff00
mov ecx, 0xfff70505
cmove eax, ecx
mov ecx, dword [ebp - 0x10]
push 1
push eax
mov eax, dword [ebp + 8]
mov edx, dword [0x10148394]
add eax, 0x14
push 0x100
push 0
push 0
add eax, ecx
push 9
push eax
push ecx
lea eax, [ebp - 0x1d0]
push eax
mov eax, dword [0x1014839c]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x10]
call fcn.10039160
add esp, 0x24
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x104]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x16c], 0x100ea074
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x170], eax
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x154]
call fcn.1001fd20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.100202c0
lea eax, [ebp - 0x104]
mov dword [ebp - 0x104], 0x100ea054
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0xffffffff
push eax
mov dword [ebp - 0x104], 0x100ea050
call fcn.1009c9ab
mov edx, dword [ebp - 0x20]
add esi, 0xb8
mov eax, dword [ebp - 0x14]
inc edx
mov ecx, dword [ebp + 8]
add esp, 4
add ecx, 0x15c
mov dword [ebp - 0x20], edx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x1c], esi
cmp edx, dword [eax + ebx*4]
jb 0x1008cc50
push ecx
call fcn.1006eea0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4