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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edx
push edi
push 0x305
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.WTMR_9ywtbxkp
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
push str.brd9mixd
push str.ln7dylec
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.ev_cik5xp0f
push 0
push 1
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]
push 0x2ea
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push str.log:_2u7j1kis
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.hescmsmo
push str.n92qtapz
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.XML56shmujk
push 1
push 0
push 0
call esi
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.SMPHR_xuqfebzy
push 1
push 0
push 0
call esi
push str.x70df742
push str.nnd5209s
mov esi, eax
call edi
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, 0x20019
test eax, eax
je 0x40fb41
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push str.reg6ir6uyxx
push 0x80000001
call edi
push str.MTXxzcvhz0e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40fb5d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40fb70
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push str.reghbzcijta
push 0x80000001
call edi
push 0x208
push 0x40
call dword [0x41604c]
push 3
mov dword [ebp - 4], eax
pop esi
push str.692zq4uy
push str.tda0mzp0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
sub esi, 1
jne 0x40fb83
push str.ev_ymfcg3oc
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.XMLjq2gnkym
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]
call ebx
push str.WTMR_6lq0ul2g
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push 0x528
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0x20019
push esi
push str.reg8z0renha
push 0x80000001
call edi
push str.SMPHR_frh9kxa0
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]
test eax, eax
je 0x40fc4d
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push str.regr7hvhv9n
push 0x80000001
call edi
jmp 0x40fc4f
call ebx
lea ecx, [ebp - 4]
call fcn.0040e849
push 0x208
push 0x40
mov dword [ebp - 0xc], eax
call dword [0x41604c]
push 0xc
pop edx
mov ecx, eax
call fcn.0040e264
mov edx, dword [0x41629c]
mov esi, eax
mov ecx, dword [ebp - 4]
call fcn.0040f304
mov edx, esi
mov ecx, eax
call fcn.0040f304
push str.WTMR_ildtheju
push 1
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
call ebx
push str.MTXop0w6igi
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40fcc5
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40fcd2
call ebx
push str.log:_9odzljsp
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x510
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push str.log:_svfpf33c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
push esi
push 0x5d0
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push str.regva44fgv3
push 0x80000001
call edi
push str.SMPHR_50axdsja
push 1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.b395v8zu
push str.63w32o4m
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x40fd55
call ebx
push str.WTMR_snbvtudx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40fd81
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.8tvqm8sm
push str.afpzbhp9
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x40fd98
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push str.reg9kjgov5k
push 0x80000001
call edi
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
push esi
push dword [edi]
call dword [0x416144]
push esi
mov dword [edi], eax
call dword [0x4160cc]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret