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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c7c73
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
mov ebx, dword [ebp + 8]
mov edi, 0x80400000
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x4d], 0
call fcn.10003a00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4d]
push eax
lea eax, [ebp - 0x34]
push eax
push ecx
push dword [ebp - 0x5c]
mov ecx, esi
push ebx
call fcn.1005dc20
test al, al
jne 0x1005e1ff
xor bl, bl
jmp 0x1005e4c2
cmp byte [ebp - 0x4d], 0
mov eax, 0x80c0f000
mov ecx, esi
cmovne edi, eax
lea eax, [ebp - 0x34]
push edi
sub esp, 8
mov dword [ebp - 0x58], edi
push eax
push ebx
call fcn.1005eca0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea edi, [esi + 0x20]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x1005e299
mov dword [ebp - 0x1c], edi
call eax
push eax
push edi
call ebx
mov byte [ebp - 4], 1
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x34]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
call fcn.100038a0
mov ecx, dword [ebp - 0x54]
mov edx, eax
call fcn.1005e100
add esp, 0x10
mov dword [esi + 4], eax
push 0
push edi
call ebx
cmp dword [esi + 4], 0
jne 0x1005e28b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f19
jne 0x1005e28b
push dword [ebp - 0x58]
lea eax, [ebp - 0x34]
mov ecx, esi
sub esp, 8
push eax
push dword [ebp - 0x54]
call fcn.1005eca0
mov byte [ebp - 4], 0
push 0
push edi
call ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 4], 0
je 0x1005e304
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x68], edi
call eax
push eax
push edi
call ebx
mov byte [ebp - 4], 2
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], 4
test eax, eax
je 0x1005e2e6
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0x20000013
push eax
call fcn.1006d1b0
mov ecx, eax
call fcn.1006d510
test eax, eax
je 0x1005e2e6
mov eax, dword [ebp - 0x18]
jmp 0x1005e2eb
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0
push 0
push edi
call ebx
cmp dword [ebp - 0x6c], 0x12e
jne 0x1005e4bb
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
call ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
or eax, 0x80200000
push ecx
mov ecx, dword [ebp - 0x54]
push eax
push dword [ebp - 0x60]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x64]
call fcn.1005e100
add esp, 0x10
mov dword [esi + 4], eax
push 0
push edi
call ebx
cmp dword [esi + 4], 0
jne 0x1005e365
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f19
jne 0x1005e365
push dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
mov ecx, esi
sub esp, 8
push eax
push dword [ebp - 0x54]
call fcn.1005eca0
mov byte [ebp - 4], 0
push 0
push edi
call ebx
cmp dword [esi + 4], 0
mov byte [ebp - 0x4d], 0
je 0x1005e4ac
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
call ebx
mov byte [ebp - 4], 4
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], 4
test eax, eax
je 0x1005e3c7
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0x20000013
push eax
call fcn.1006d1b0
mov ecx, eax
call fcn.1006d510
test eax, eax
je 0x1005e3c7
mov eax, dword [ebp - 0x18]
jmp 0x1005e3cc
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
push 0
push edi
call ebx
cmp dword [ebp - 0x5c], 0x12e
jne 0x1005e4ac
push str.Location
lea ecx, [ebp - 0x88]
call fcn.100039b0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.1005eb00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.10003910
lea ecx, [ebp - 0x4c]
call fcn.10004080
test eax, eax
je 0x1005e49a
mov ecx, dword [esi + 4]
mov byte [ebp - 0x4d], 1
call fcn.1005d9d0
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
call ebx
mov byte [ebp - 4], 8
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
call fcn.100038a0
mov ecx, dword [ebp - 0x54]
mov edx, eax
call fcn.1005e100
add esp, 0x10
mov dword [esi + 4], eax
push 0
push edi
call ebx
cmp dword [esi + 4], 0
jne 0x1005e491
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f19
jne 0x1005e491
push dword [ebp - 0x58]
lea eax, [ebp - 0x4c]
mov ecx, esi
sub esp, 8
push eax
push dword [ebp - 0x54]
call fcn.1005eca0
mov byte [ebp - 4], 7
push 0
push edi
call ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.10003910
cmp byte [ebp - 0x4d], 0
jne 0x1005e4bb
mov ecx, dword [esi + 4]
call fcn.1005d9d0
mov dword [esi + 4], 0
cmp dword [esi + 4], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10003910
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret 0x14