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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
push str.SMPHR_s3n8slrd
xor edi, edi
xor ebx, ebx
inc edi
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.zbf06q98
push str.cu2mu7lp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ec0c
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.regpnw0cplv
push 0x80000001
call ebx
push 6
pop esi
push str.log:_jkdhegcj
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esi, 1
jne 0x40ec0f
push str.XMLstk304cz
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.ev_a7hx8ohm
push esi
push edi
push esi
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 0x177
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.WTMR_r0uby8i6
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
lea eax, [ebp - 0x150]
push eax
push str.s_bbxqh9wp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
push eax
push 0xc77
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.log:_tlungbb4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.MTXv4ff6r9c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40ecda
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40ecf1
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.regzhqr3rcu
push 0x80000001
call ebx
push str.WTMR_nwwi1brb
push edi
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
test esi, esi
je 0x40ed12
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
call ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 8
mov dword [ebp - 4], ebx
call dword [0x417048]
push eax
call dword [0x417128]
test eax, eax
je 0x40eda4
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
push dword [ebp - 8]
call dword [0x417030]
test eax, eax
jne 0x40ed4f
call dword [0x4170b8]
cmp eax, 0x7a
jne 0x40eda4
push dword [ebp - 4]
push 0x40
call dword [0x417098]
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
push dword [ebp - 8]
call dword [0x417030]
test eax, eax
je 0x40eda4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push dword [esi]
call dword [0x41705c]
test eax, eax
je 0x40eda4
push dword [ebp - 0xc]
push dword [0x41756c]
call dword [0x41711c]
test eax, eax
push esi
cmovne edi, ebx
call dword [0x4170e0]
mov eax, edi
jmp 0x40eda6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret