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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c4363
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100fc03c]
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.10003560
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.1005ce50
test al, al
jne 0x1005d43f
xor bl, bl
jmp 0x1005d702
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.1005dee0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea edi, [esi + 0x20]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x1005d4d9
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.10002cb0
mov ecx, dword [ebp - 0x54]
mov edx, eax
call fcn.1005d340
add esp, 0x10
mov dword [esi + 4], eax
push 0
push edi
call ebx
cmp dword [esi + 4], 0
jne 0x1005d4cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f19
jne 0x1005d4cb
push dword [ebp - 0x58]
lea eax, [ebp - 0x34]
mov ecx, esi
sub esp, 8
push eax
push dword [ebp - 0x54]
call fcn.1005dee0
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 0x1005d544
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 0x1005d526
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0x20000013
push eax
call fcn.1006a860
mov ecx, eax
call fcn.1006abc0
test eax, eax
je 0x1005d526
mov eax, dword [ebp - 0x18]
jmp 0x1005d52b
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 0x1005d6fb
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.1005d340
add esp, 0x10
mov dword [esi + 4], eax
push 0
push edi
call ebx
cmp dword [esi + 4], 0
jne 0x1005d5a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f19
jne 0x1005d5a5
push dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
mov ecx, esi
sub esp, 8
push eax
push dword [ebp - 0x54]
call fcn.1005dee0
mov byte [ebp - 4], 0
push 0
push edi
call ebx
cmp dword [esi + 4], 0
mov byte [ebp - 0x4d], 0
je 0x1005d6ec
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 0x1005d607
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0x20000013
push eax
call fcn.1006a860
mov ecx, eax
call fcn.1006abc0
test eax, eax
je 0x1005d607
mov eax, dword [ebp - 0x18]
jmp 0x1005d60c
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 0x1005d6ec
push str.Location
lea ecx, [ebp - 0x88]
call fcn.10002d70
mov byte [ebp - 4], 5
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.1005dd40
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.10002d10
lea ecx, [ebp - 0x4c]
call fcn.10002ca0
test eax, eax
je 0x1005d6da
mov ecx, dword [esi + 4]
mov byte [ebp - 0x4d], 1
call fcn.1005cc00
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.10002cb0
mov ecx, dword [ebp - 0x54]
mov edx, eax
call fcn.1005d340
add esp, 0x10
mov dword [esi + 4], eax
push 0
push edi
call ebx
cmp dword [esi + 4], 0
jne 0x1005d6d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f19
jne 0x1005d6d1
push dword [ebp - 0x58]
lea eax, [ebp - 0x4c]
mov ecx, esi
sub esp, 8
push eax
push dword [ebp - 0x54]
call fcn.1005dee0
mov byte [ebp - 4], 7
push 0
push edi
call ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.10002d10
cmp byte [ebp - 0x4d], 0
jne 0x1005d6fb
mov ecx, dword [esi + 4]
call fcn.1005cc00
mov dword [esi + 4], 0
cmp dword [esi + 4], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10002d10
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.10088f98
mov esp, ebp
pop ebp
ret 0x14