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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
mov eax, ecx
push edi
push eax
mov dword [ebp - 4], eax
call dword [0x41719c]
push 0xd3d
xor ebx, ebx
mov dword [ebp - 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push str.regiy6zdfg3
push 0x80000001
call edi
lea eax, [ebp - 0x158]
push eax
push str.s_3jcfxium
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.MTXua94bg5a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, eax
test esi, esi
je 0x40fa5e
push str.log:_pq4wrltf
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.ev_vx41shaz
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]
xor esi, esi
push esi
push 0x114e
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.log:_g519d0t3
call ebx
push str.SMPHR_o3u2xvzm
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
jne 0x40fad4
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push str.reggr17ifkk
push 0x80000001
call edi
push str.WTMR_oalnwsgu
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.log:_rj3lmscv
mov esi, eax
call ebx
test esi, esi
je 0x40fb0f
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.reg6yygw5d2
push 0x80000001
call edi
jmp 0x40fb16
push str.log:_73f7py5r
call ebx
mov esi, dword [ebp - 0xc]
lea eax, [esi*2 + 0x10]
push eax
push 0x40
call dword [0x41704c]
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 0
push 0xfde9
call dword [0x4170b0]
push 8
pop esi
push str.log:_anxts587
call ebx
sub esi, 1
jne 0x40fb43
push str.WTMR_503sw8ay
push 1
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.regqqjglncw
push 0x80000001
call edi
test esi, esi
je 0x40fb98
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.regxsuzx1fl
push 0x80000001
call edi
push str.XML2kjoebbk
push 1
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 esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push 0xf7c
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push str.MTXxcn7ng3q
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x40fbee
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40fbfa
push str.y9vq253x
push str.6i1yg4nm
call ebx
push str.SMPHR_golbmp4h
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push str.regs3fg0wat
push 0x80000001
call edi
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x40fc41
push str.soc04m4x
push str.r1hxt4oa
call ebx
jmp 0x40fc58
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.regdbt4x2w5
push 0x80000001
call edi
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov word [eax + ecx*2], dx
leave
ret