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

Disassembly:
push 0xffffffffffffffff
push 0x1016ef16
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b01e4]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x1c], ebp
xor ebx, ebx
mov dword [ebp + 4], ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebp + 8]
mov dword [esp + 0x64], ebx
mov dword [ebp], 0x10186178
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], ebx
call fcn.1007d450
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov dword [ebp + 0x4c], edx
mov edx, dword [esp + 0x80]
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], eax
mov eax, dword [esp + 0x70]
mov dword [ebp + 0x58], edx
mov edx, dword [esp + 0x78]
mov word [ebp + 0x48], bx
mov word [ebp + 0x4a], bx
lea edi, [ebp + 0x5c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x74]
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x88], 0x400
mov dword [ebp + 0x8c], ecx
mov dword [ebp + 0x90], edx
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa0], ebx
lea esi, [ebp + 0xa4]
mov ecx, esi
mov byte [esp + 0x5c], 3
call fcn.10019610
mov dword [esi + 4], eax
mov byte [eax + 0x29], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], ebx
lea ecx, [ebp + 0xb0]
mov byte [esp + 0x5c], 4
call fcn.100340b0
lea ecx, [ebp + 0xc8]
mov byte [esp + 0x5c], 5
call fcn.100340b0
mov eax, dword [esp + 0x8c]
push eax
lea esi, [ebp + 0x104]
push 0x101af110
mov ecx, esi
mov byte [esp + 0x64], 6
mov dword [ebp + 0xe8], ebx
mov dword [ebp + 0xec], ebx
mov dword [ebp + 0xf0], ebx
mov dword [ebp + 0xf4], ebx
mov dword [ebp + 0xf8], ebx
mov dword [ebp + 0xfc], ebx
mov dword [ebp + 0x100], ebx
call fcn.1005d260
mov ecx, dword [esp + 0x84]
mov dword [ebp + 0x170], ecx
mov word [ebp + 0x174], bx
mov word [ebp + 0x176], bx
mov byte [ebp + 0x178], bl
mov byte [ebp + 0x179], 5
mov byte [ebp + 0x1a0], bl
mov dword [ebp + 0x1a8], ebx
mov dword [ebp + 0x1ac], ebx
mov dword [ebp + 0x1b0], ebx
mov dword [ebp + 0x1b4], ebx
mov dword [ebp + 0x1b8], ebx
mov dword [ebp + 0x1bc], ebx
mov dword [ebp + 0x1c0], ebx
mov dword [ebp + 0x1c4], ebx
mov byte [ebp + 0x1c8], bl
mov byte [ebp + 0x1c9], bl
mov byte [ebp + 0x1ca], bl
mov byte [ebp + 0x1cb], bl
mov byte [ebp + 0x1cc], bl
mov dword [ebp + 0x1d0], ebx
or eax, 0xffffffff
mov dword [ebp + 0x1d4], eax
mov dword [ebp + 0x1d8], eax
mov dword [ebp + 0x1dc], eax
mov dword [ebp + 0x1e0], eax
mov dword [ebp + 0x1e8], ebx
mov dword [ebp + 0x1ec], ebx
mov dword [ebp + 0x1f0], ebx
mov edx, dword [esp + 0x88]
mov dword [ebp + 0x1f4], edx
mov dword [ebp + 0x1f8], 0xfffffff
mov byte [ebp + 0x1fc], bl
mov dword [ebp + 0x204], ebx
mov dword [ebp + 0x208], ebx
mov dword [ebp + 0x20c], ebx
mov byte [esp + 0x5c], 0xa
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp + 0x210], eax
mov dword [ebp + 0x214], ebx
mov dword [ebp + 0x218], ebx
mov dword [ebp + 0x21c], ebx
mov dword [ebp + 0x220], ebx
mov dword [ebp + 0x224], ebx
mov dword [ebp + 0x228], ebx
mov dword [ebp + 0x22c], ebx
call fcn.100e47eb
mov ecx, eax
call fcn.100e4578
mov ecx, ebp
mov dword [ebp + 0xe0], eax
call fcn.1005b080
mov ecx, dword [ebp + 0x50]
cmp ecx, ebx
je 0x1005bdcf
mov eax, dword [ecx]
mov edx, dword [eax + 0x4c]
call edx
mov byte [ebp + 0x178], al
mov ecx, 9
lea edi, [esp + 0x30]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.101005a3
add esp, 4
mov ecx, eax
call fcn.1010022a
test eax, eax
jne 0x1005be0b
push 2
call fcn.101005a3
add esp, 4
mov ecx, eax
call fcn.1010022a
test eax, eax
mov dword [esp + 0x30], 0x20
je 0x1005be13
mov dword [esp + 0x30], 5
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [ebp + 0x104]
mov byte [esp + 0x64], 0xb
call fcn.1005d880
mov byte [ebp + 0x19a], 1
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp + 0x19c], eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1005be5d
push eax
call fcn.10149646
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x2c