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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], edx
push ebx
push 0x12f3
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.g41v9360
push str.6dgac4un
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.WTMR_vszfrk1v
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4104c6
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push 0x2f7
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push str.reg6l0e1w30
push 0x80000001
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.ev_88c4qzrn
push ebx
push 1
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]
lea eax, [ebp - 0x160]
push eax
push str.s_tdhyddm1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.MTX20fugzrs
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
je 0x41054d
push eax
call esi
jmp 0x410564
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.regl8m1kb4h
push 0x80000001
call edi
push 0x208
push 0x40
call dword [0x41704c]
push str.MTX3jgp3d9d
push 0
push 0
mov dword [ebp - 4], eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test eax, eax
je 0x410595
push eax
call esi
push str.log:_xkhuruup
call ebx
jmp 0x41059b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.XML0tlu090e
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]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push str.reglyujgopb
push 0x80000001
call edi
push str.ev_pgsav695
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]
push 0xa
pop esi
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.reg7wr0yj7j
push 0x80000001
call edi
sub esi, 1
jne 0x4105ee
push str.SMPHR_msu22t8e
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 0x910
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push str.regmn1sr42d
push 0x80000001
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.WTMR_nsa3lkk8
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.r71az981
push str.oeccnwig
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
call esi
push str.WTMR_wrh03xuv
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x410691
push eax
call esi
jmp 0x410698
push str.log:_y8y2sdbt
call ebx
lea ecx, [ebp - 4]
call fcn.0040f04b
push 0x208
push 0x40
mov dword [ebp - 8], eax
call dword [0x41704c]
push 0xc
pop edx
mov ecx, eax
call fcn.0040e9c0
mov edx, dword [0x41729c]
mov esi, eax
mov ecx, dword [ebp - 4]
call fcn.0040fc69
mov edx, esi
mov ecx, eax
call fcn.0040fc69
mov dword [ebp - 4], eax
xor eax, eax
push eax
push 0xedf
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push str.log:_gbqp396p
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.WTMR_eit19lf5
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.MTXif5h2fc7
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x41072b
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x410732
push str.log:_ji256gpo
call ebx
push str.ev_efeo27pa
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]
push str.SMPHR_hp4lh5aa
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]
test eax, eax
jne 0x410786
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push esi
push str.regq2g61dtq
push 0x80000001
call edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.6spfdy3l
push str.9gu1roig
call edi
push str.WTMR_mas2yytx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.log:_6k4m6dqj
mov esi, eax
call ebx
test esi, esi
je 0x4107bc
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
jmp 0x4107c8
push str.2e08wpi0
push str.90c4q21d
call edi
push str.XML7rcc68gx
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
push esi
push dword [edi]
call dword [0x417144]
push esi
mov dword [edi], eax
call dword [0x4170cc]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret