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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push edi
push str.WTMR_ym6bmffb
push 1
push 0
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], ecx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test eax, eax
je 0x40e87a
push eax
call ebx
push str.tag0xnf48
call edi
push str.XMLaxdt8ke2
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.WTMR_jeyw99e1
push 1
push 0
call esi
push str.tfo0sbavo
mov esi, eax
call edi
push esi
call ebx
push str.t3ewm5odv
call edi
push 0x333
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push str.regpgrampmo
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.MTXyvemg4hm
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40e90f
push str.99kxwiit
push str.03o1p8od
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4151bc]
push dword [ebp - 0xc]
mov esi, dword [0x41504c]
mov dword [ebp - 0x10], eax
mov eax, dword [0x415090]
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 - 0xc]
pop ecx
push str.WTMR_4qsx3i2j
push 1
cmp word [eax], 0x5c
push 0
cmove edi, ecx
add edi, eax
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push str.reggy7bmue0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test esi, esi
je 0x40e97d
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.SMPHR_wn3dccey
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.ev_elzlvdxb
push esi
push 1
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]
xor eax, eax
push eax
push 0x1127
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push str.to2rpa6aq
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.tlsbgjkes
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.e3abpbr1
push str.q2zrqrlx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea eax, [ebp - 0x15c]
push eax
push str.s_a3f8hc8a
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xa07
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push str.5sbkcc11
push str.i4aw58sr
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WTMR_oo77qao9
push 1
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.tpbqi4vp3
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.XMLuyums7pi
push 1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.MTXztwi3tu3
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x40eb54
push dword [ebp - 0xc]
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 0x40eaf4
sub esi, edi
lea edx, [ebp - 8]
sar esi, 1
mov ecx, edi
push esi
push 0
call fcn.0040eb7b
pop ecx
pop ecx
test eax, eax
je 0x40eaec
mov edx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.0040f012
mov edx, dword [ebp - 8]
mov ecx, eax
call fcn.0040f012
mov ebx, eax
lea edi, [edi + esi*2]
add edi, 2
jmp 0x40eb4b
cmp dword [ebp + 8], 0
je 0x40eb09
mov edx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.0040f012
mov edx, dword [ebp + 8]
jmp 0x40eb31
mov eax, dword [0x415090]
push edi
call eax
push eax
push 0
lea edx, [ebp - 8]
mov ecx, edi
call fcn.0040eb7b
pop ecx
pop ecx
test eax, eax
je 0x40eb3a
mov edx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.0040f012
mov edx, dword [ebp - 8]
mov ecx, eax
call fcn.0040f012
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 0x40ea8c
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