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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.ev_2z4m4fmh
xor edi, edi
mov dword [ebp - 8], ecx
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.SMPHR_91ti1wo3
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
jne 0x40efde
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push str.regl8gazh5d
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.MTX8jjwivxi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40f002
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call ebx
mov eax, dword [0x41504c]
push 0x20a
push 0x40
call eax
push 0xc8
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, eax
push str.t21yossmx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call ebx
push str.WTMR_rjb03zxc
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.tgp6j07o8
mov esi, eax
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
call esi
call ebx
push str.XMLnjauf1h7
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]
push str.kqe8fewj
push str.mfevz3or
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.WTMR_idlzcl8n
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov edi, eax
call ebx
test edi, edi
je 0x40f0a0
push edi
call esi
call ebx
mov esi, dword [ebp - 4]
xor edi, edi
mov eax, dword [0x415198]
push esi
push edi
push edi
push 0x1c
push edi
call eax
test eax, eax
js 0x40f16d
push str.WTMR_nrwr1aud
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov edi, eax
call ebx
test edi, edi
je 0x40f0d7
push edi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.MTXsan4eqwg
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40f0f3
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40f10d
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push str.reg85npek0w
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 8
pop edi
call ebx
sub edi, 1
jne 0x40f110
xor ebx, ebx
push ebx
push 0x7d
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.reg6nr7t42t
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [0x4154b4]
mov ecx, esi
call fcn.0040f6d4
mov edi, dword [ebp - 8]
mov esi, eax
mov ecx, dword [0x415144]
push esi
push dword [edi]
call ecx
push esi
mov dword [edi], eax
call dword [0x4150cc]
xor eax, eax
inc eax
jmp 0x40f17a
test esi, esi
je 0x40f178
push esi
call dword [0x4150cc]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret