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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push esi
push edi
push str.SMPHR_0vmordku
xor edi, edi
xor ebx, ebx
inc edi
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test eax, eax
je 0x40d2b3
push str.icl25cor
push str.jmg707ro
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x40d2ba
push str.log:_99b4vva9
call ebx
push 0xa
pop esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.regzqi1frz8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esi, 1
jne 0x40d2bd
push str.XMLtfp9vd8k
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]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea eax, [ebp - 0x148]
push eax
push str.s_1thns4t9
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.WTMR_76vqladx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40d330
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
jmp 0x40d337
push str.log:_2h6iqktg
call ebx
xor eax, eax
push eax
push 0x5c0
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.MTXk7xwcn7b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40d36e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call esi
push 0x568
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push str.log:_l34r06yg
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.WTMR_wj4dtwsh
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.h3hz5vgs
push str.w6q0fvd2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.ev_juucv5hc
push 0
push edi
push 0
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]
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.reg7vckasuj
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.2652gkdt
push str.hwtozhnf
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x41a360]
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [0x41a190]
mov esi, eax
test esi, esi
jne 0x40d424
or eax, 0xffffffff
jmp 0x40d5e8
push dword [0x41a20c]
add esi, 0x10
push esi
mov dword [ebp + 8], esi
call dword [0x41a190]
test eax, eax
je 0x40d44c
sub eax, esi
sar eax, 1
mov dword [ebp - 4], eax
jns 0x40d44c
push 0xfffffffffffffffe
pop eax
jmp 0x40d5e8
xor eax, eax
push eax
push 0x11a5
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push str.log:_5pdvohy4
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.3lsupzox
push str.9ej6uxar
call esi
push str.SMPHR_yg6woani
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 6
pop edi
push str.log:_176unnqg
call ebx
sub edi, 1
jne 0x40d49f
push str.WTMR_gdreakh9
inc edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40d4d1
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.a21l72ht
push str.yr1vsecn
call esi
push 0x770
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.log:_g28vdfhj
call ebx
push str.ev_tc11yl0p
xor ebx, ebx
push ebx
push edi
push ebx
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.MTXfs4amu1f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40d524
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.XMLmu2y70uv
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.ocr8blbv
push str.o141fpl9
call ebx
lea eax, [ebp - 0x288]
push eax
push str.s_g9hpm4f3
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.WTMR_17op46gu
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.ohm8mqh5
push str.gwgmnvpc
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.8jklhanr
push str.758o0eum
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
push esi
call dword [0x41a090]
add eax, eax
push eax
push 0x40
call dword [0x41a04c]
push dword [ebp - 4]
lea edx, [ebp + 8]
mov dword [ebp + 8], eax
push 0
mov ecx, esi
call fcn.00410ae4
pop ecx
pop ecx
test eax, eax
jne 0x40d5cd
push 0xfffffffffffffffd
pop edi
jmp 0x40d5dd
mov esi, dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [0x41a144]
mov dword [esi], eax
push dword [ebp + 8]
call dword [0x41a0cc]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8