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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0440
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4d404c]
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 edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov esi, 0x80400000
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x45], 0
call fcn.004075a0
mov dword [ebp - 4], 0
cmp dword [edi + 4], 0
jne 0x42ba1b
lea eax, [ebp - 0x45]
mov ecx, ebx
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x58]
call fcn.0042adc0
test al, al
je 0x42ba1b
cmp byte [ebp - 0x45], 0
mov eax, 0x80c0f000
cmovne esi, eax
mov dword [ebp - 0x4c], esi
lea esi, [edi + 0x20]
mov dword [ebp - 0x5c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 1
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.00407400
mov edx, eax
mov ecx, ebx
call fcn.0042b710
add esp, 0x10
mov dword [edi + 4], eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [edi + 4], 0
jne 0x42b884
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f19
jne 0x42b884
push dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
mov ecx, edi
sub esp, 8
push eax
push ebx
call fcn.0042c200
mov byte [ebp - 4], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [edi + 4], 0
je 0x42b8a9
mov ecx, edi
call fcn.0042c6f0
cmp eax, 0x12e
jne 0x42ba12
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
or eax, 0x80200000
push ecx
push eax
push dword [ebp - 0x50]
mov ecx, ebx
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x54]
call fcn.0042b710
add esp, 0x10
mov dword [edi + 4], eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [edi + 4], 0
jne 0x42b90f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f19
jne 0x42b90f
push dword [ebp - 0x5c]
lea eax, [ebp - 0x2c]
mov ecx, edi
sub esp, 8
push eax
push ebx
call fcn.0042c200
mov byte [ebp - 4], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [edi + 4], 0
mov byte [ebp - 0x45], 0
je 0x42ba03
mov ecx, edi
call fcn.0042c6f0
cmp eax, 0x12e
jne 0x42ba03
push str.Location
lea ecx, [ebp - 0x78]
call fcn.00407560
mov byte [ebp - 4], 3
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.0042c060
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
call fcn.004074c0
lea ecx, [ebp - 0x44]
call fcn.004073f0
test al, al
jne 0x42b9f1
mov ecx, dword [edi + 4]
mov byte [ebp - 0x45], 1
call fcn.0042ab70
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 6
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.00407400
mov edx, eax
mov ecx, ebx
call fcn.0042b710
add esp, 0x10
mov dword [edi + 4], eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [edi + 4], 0
jne 0x42b9e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f19
jne 0x42b9e4
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
mov ecx, edi
sub esp, 8
push eax
push ebx
call fcn.0042c200
mov byte [ebp - 4], 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004074c0
cmp byte [ebp - 0x45], 0
jne 0x42ba12
mov ecx, dword [edi + 4]
call fcn.0042ab70
mov dword [edi + 4], 0
cmp dword [edi + 4], 0
setne bl
jmp 0x42ba1d
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004074c0
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.00477254
mov esp, ebp
pop ebp
ret 0x14