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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
push esi
push edi
push str.WTMR_540bzyah
push 1
push 0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push str.reglshn8vnt
push 0x80000001
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x40f3fb
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.log:_f09wgrpi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40f3fd
call edi
xor esi, esi
push esi
push 0xa48
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0x8a1
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push str.regmxln9m3x
push 0x80000001
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x28]
xor esi, esi
push eax
push 0x20019
push esi
push str.reg41hhobax
push 0x80000001
call ebx
push str.MTXnr6z2i1t
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call edi
test esi, esi
je 0x40f47a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0xa
pop esi
push str.b1pdewg1
push str.twacbax0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
sub esi, 1
jne 0x40f47d
push str.XMLf2adb4jd
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]
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push esi
push str.reglc1mu9uf
push 0x80000001
call ebx
push str.ev_p2qhrn7v
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_atxl11oa
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov esi, eax
call edi
push ebx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x40f50e
push str.log:_vv71kl0r
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x4171bc]
mov esi, dword [ebp - 0x14]
push esi
mov dword [ebp - 0x10], eax
call dword [0x417090]
lea eax, [eax*2 + 0x100]
push eax
push 0x40
call dword [0x41704c]
push 2
mov ebx, eax
xor edi, edi
cmp word [esi], 0x5c
pop eax
push str.MTXxsb6c6w6
push 0
cmove edi, eax
mov dword [ebp - 0xc], ebx
push 0
add edi, esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40f57d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.regh8lbcm2a
jmp 0x40f5aa
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.reg1c0q6vdv
push 0x80000001
call esi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push str.rego8k0qa8x
push 0x80000001
call esi
push str.XMLo6240tag
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.8caz5t1r
push str.ekgjfmio
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.WTMR_bcdycgn8
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.WTMR_h1hjjvsd
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.6axbhxel
push str.uti3nwes
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40f63a
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push str.regw58rum3k
push 0x80000001
call esi
push 0x5b1
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
push str.reg5z89fjtc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
push str.regcdik09hi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push eax
push 0x91b
push eax
push 4
pop esi
push esi
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esi, 1
jne 0x40f6a3
push str.ev_yjarpgl0
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]
lea eax, [ebp - 0x174]
push eax
push str.s_g130xrij
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.SMPHR_8wkuq8rh
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
test edi, edi
je 0x40f7dd
push dword [ebp - 0x14]
call dword [0x417090]
lea eax, [eax*2 + 0x100]
push eax
push 0x40
call dword [0x41704c]
push dword [0x41729c]
mov ebx, eax
push edi
mov dword [ebp - 8], ebx
call dword [0x417190]
mov esi, eax
test esi, esi
je 0x40f769
sub esi, edi
lea edx, [ebp - 8]
sar esi, 1
mov ecx, edi
push esi
push 0
call fcn.0040f7fa
mov ebx, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
je 0x40f761
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.0040fc69
mov edx, ebx
mov ecx, eax
call fcn.0040fc69
mov dword [ebp - 0xc], eax
lea edi, [edi + esi*2]
add edi, 2
jmp 0x40f7cb
cmp dword [ebp + 8], 0
je 0x40f789
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.0040fc69
mov edx, dword [ebp + 8]
mov ecx, eax
call fcn.0040fc69
mov dword [ebp - 0xc], eax
jmp 0x40f7bb
push edi
call dword [0x417090]
push eax
push 0
lea edx, [ebp - 8]
mov ecx, edi
call fcn.0040f7fa
pop ecx
pop ecx
test eax, eax
je 0x40f7b5
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.0040fc69
mov ebx, dword [ebp - 8]
mov edx, ebx
jmp 0x40f77d
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
push eax
push dword [esi]
call dword [0x417144]
mov dword [esi], eax
xor edi, edi
push ebx
call dword [0x4170cc]
test edi, edi
jne 0x40f6ff
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
push ebx
push dword [esi]
call dword [0x417144]
push ebx
mov dword [esi], eax
call dword [0x4170cc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret