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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fca0
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x441310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x430848
lea ecx, [ebp - 0x12c]
call fcn.004079e0
mov dword [ebp - 4], 0
push 0x430854
lea ecx, [ebp - 0x12c]
call fcn.00409970
push 0x430860
lea ecx, [ebp - 0x12c]
call fcn.00409970
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x442194], eax
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x17
lea ecx, [ebp - 0x12c]
call fcn.00410730
push eax
lea ecx, [ebp - 0x114]
push ecx
call fcn.00415cbd
add esp, 0xc
test eax, eax
jne 0x412345
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004015c0
add esp, 8
call fcn.004121c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x144], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
sub ecx, dword [ebp - 0x144]
cmp ecx, 0x384
jge 0x412398
push 1
call fcn.0041bc42
call fcn.00412210
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0x1e8480
jge 0x4123b6
push 1
call fcn.0041bc42
call fcn.00413680
mov edx, dword [0x442188]
push edx
call fcn.004147c3
add esp, 4
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [0x44219c], eax
push 8
call fcn.00414785
add esp, 4
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x41240f
xor ecx, ecx
mov edx, dword [ebp - 0x134]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x13c], eax
jmp 0x412419
mov dword [ebp - 0x13c], 0
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
mov eax, dword [0x44219c]
mov dword [edx + 4], eax
mov ecx, dword [0x442188]
add ecx, 6
sub ecx, dword [0x442194]
push ecx
call fcn.004147c3
add esp, 4
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x130], edx
mov eax, dword [0x442188]
push eax
mov ecx, dword [0x442184]
push ecx
mov edx, dword [0x442188]
add edx, 6
sub edx, dword [0x442194]
push edx
mov eax, dword [ebp - 0x130]
push eax
call fcn.00411d20
add esp, 0x10
mov ecx, dword [section..data]
add ecx, 6
sub ecx, dword [0x442194]
push ecx
mov edx, dword [0x442188]
push edx
mov eax, 6
sub eax, dword [0x442194]
push eax
mov ecx, dword [0x442188]
add ecx, 6
sub ecx, dword [0x442194]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call fcn.00401240
add esp, 0x14
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x130]
mov dword [eax], ecx
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [0x442188]
add eax, 6
sub eax, dword [0x442194]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.00411e80
add esp, 0xc
mov edx, dword [section..data]
add edx, 6
sub edx, dword [0x442194]
push edx
mov eax, dword [0x442188]
add eax, 6
sub eax, dword [0x442194]
push eax
push 0
mov ecx, dword [0x442188]
push ecx
mov edx, dword [ebp - 0x130]
add edx, 6
sub edx, dword [0x442194]
push edx
call fcn.004011b0
add esp, 0x14
mov eax, dword [0x442188]
add eax, 6
sub eax, dword [0x442194]
push eax
push 7
mov ecx, dword [0x44219c]
push ecx
call fcn.00415b40
add esp, 0xc
push 0x412090
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 0x44218c
mov edx, 0x46
sub edx, dword [0x442194]
push edx
mov eax, dword [0x442188]
add eax, 6
sub eax, dword [0x442194]
push eax
mov ecx, dword [0x44219c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [0x44219c]
push edx
call fcn.004121a0
add esp, 4
call fcn.00401700
mov dword [ebp - 0x154], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00408910
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004147d1
mov esp, ebp
pop ebp
ret