Function at 0x40f17f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push esi
push edi
push str.WTMR_1vrv1c0f
push 1
mov ebx, ecx
mov dword [ebp - 0x14], edx
xor edi, edi
mov dword [ebp - 0x10], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.tyju5ah33
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
je 0x40f1bd
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
jmp 0x40f1d7
lea eax, [ebp - 0xc]
push eax
push 0x20019
push edi
push str.reg4gep0qy6
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x15c]
push eax
push str.s_yahr9pc7
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.MTXxwp6uzn0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40f20a
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40f210
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x4151bc]
mov esi, dword [0x41504c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x415090]
push ebx
call eax
lea eax, [eax*2 + 0x100]
push eax
push 0x40
call esi
push 2
mov ebx, eax
xor edi, edi
mov eax, dword [ebp - 0x10]
pop ecx
cmp word [eax], 0x5c
cmove edi, ecx
xor esi, esi
push esi
push 0xd1e
push esi
push 4
push esi
push 0xffffffffffffffff
add edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push str.reg0nncwggs
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.WTMR_iwepdwmy
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push eax
call esi
push str.thjnaendw
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.WTMR_1ja895kg
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40f2b8
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.SMPHR_w69ztrz8
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.t4hog1bw8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x40f3d1
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push str.regbafjs25k
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x40f3d1
push dword [ebp - 0x10]
mov eax, dword [0x415090]
mov esi, dword [0x41504c]
call eax
lea eax, [eax*2 + 0x100]
push eax
push 0x40
call esi
push dword [0x4152a8]
mov dword [ebp - 8], eax
mov eax, dword [0x415190]
push edi
call eax
mov esi, eax
test esi, esi
je 0x40f371
sub esi, edi
lea edx, [ebp - 8]
sar esi, 1
mov ecx, edi
push esi
push 0
call fcn.0040f3f8
pop ecx
pop ecx
test eax, eax
je 0x40f369
mov edx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.0040f6d4
mov edx, dword [ebp - 8]
mov ecx, eax
call fcn.0040f6d4
mov ebx, eax
lea edi, [edi + esi*2]
add edi, 2
jmp 0x40f3c8
cmp dword [ebp + 8], 0
je 0x40f386
mov edx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.0040f6d4
mov edx, dword [ebp + 8]
jmp 0x40f3ae
mov eax, dword [0x415090]
push edi
call eax
push eax
push 0
lea edx, [ebp - 8]
mov ecx, edi
call fcn.0040f3f8
pop ecx
pop ecx
test eax, eax
je 0x40f3b7
mov edx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.0040f6d4
mov edx, dword [ebp - 8]
mov ecx, eax
call fcn.0040f6d4
mov ebx, eax
mov esi, dword [ebp - 0x14]
mov eax, dword [0x415144]
push ebx
push dword [esi]
call eax
mov dword [esi], eax
xor edi, edi
push dword [ebp - 8]
call dword [0x4150cc]
test edi, edi
jne 0x40f309
mov esi, dword [ebp - 0x14]
mov ecx, dword [0x415144]
push ebx
push dword [esi]
call ecx
push ebx
mov dword [esi], eax
call dword [0x4150cc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret