Function at 0x40f4f1
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
push ebx
push esi
push edi
push str.SMPHR_ctoy85uy
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x40f522
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.ev_w1v6gq3f
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push str.MTXjac2h9rp
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, eax
test esi, esi
je 0x40f578
push str.tumyok3ra
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.y9hcww4j
push str.megabt3k
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push edi
push 0x673
push edi
push 4
push edi
push 0xffffffffffffffff
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0xe13
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x158]
push eax
push str.s_ji847msw
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov eax, dword [0x41504c]
push 0x208
push 0x40
call eax
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push 0x973
push eax
push 4
push eax
push 0xffffffffffffffff
mov dword [ebp - 8], 0x104
mov dword [ebp - 0x10], 1
call esi
push str.tsvokt7xn
mov esi, eax
call ebx
push esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.9h1ax6df
push str.fxvrzngo
call esi
push str.WTMR_iadc4qpr
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.b73laros
push str.stgaai7d
mov edi, eax
call esi
test edi, edi
je 0x40f637
push edi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.t5qdz6127
jmp 0x40f63c
push str.tqx0oz2ay
call ebx
push str.MTXuwyp0mzf
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40f65a
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40f668
push str.tzrixxlap
call ebx
push str.th0zjxe72
call ebx
push str.SMPHR_apuc3cyk
push 1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x40f68e
push str.tdv2ywoqz
call ebx
jmp 0x40f69a
push str.f757up8d
push str.gwixf5pi
call esi
lea eax, [ebp - 0x298]
push eax
push str.s_f8ads0ue
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xb22
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
lea eax, [ebp - 0x14]
mov ebx, 0x80000001
push eax
push 0x20019
push 0
push str.regag1solu3
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x18]
xor edi, edi
push eax
push 0x20019
push edi
push str.regzaymxyte
push ebx
call esi
push str.WTMR_uhthxy03
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov eax, dword [0x4150a0]
lea ecx, [ebp - 4]
push ecx
push 0x20119
push edi
push dword [0x4153a0]
push 0x80000002
call eax
mov ebx, dword [ebp - 0xc]
mov esi, eax
mov ecx, dword [0x4150d4]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push dword [0x4152d0]
push dword [ebp - 4]
call ecx
test esi, esi
jne 0x40f74c
test eax, eax
je 0x40f755
push dword [ebp - 4]
call dword [0x415068]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret