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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
call dword [0x41619c]
push ebx
mov esi, eax
call dword [0x41619c]
lea edi, [eax + 0x71]
add edi, esi
push edi
push 0x40
call dword [0x41604c]
mov ebx, eax
test edi, edi
je 0x40f556
cmp edi, 0x7fffffff
jbe 0x40f548
mov byte [ebx], 0
jmp 0x40f556
push ecx
push dword [ebp - 8]
mov edx, edi
push ecx
mov ecx, ebx
call fcn.0040e199
lea eax, [ebp - 0x150]
push eax
push str.s_5nhhoqk9
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.log:_akpdlkuw
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.ev_zg5w021w
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 str.MTX0p9yrakw
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40f5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40f5cf
push str.du3cdxs4
push str.t3rbqnm9
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 2
pop esi
push str.bg6x7qmq
push str.0dzxkr6f
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
sub esi, 1
jne 0x40f5d2
push str.XMLuabgleih
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.WTMR_86fs6yoy
push 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
xor eax, eax
push eax
push 0x129
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40f66d
cmp edi, 0x7fffffff
ja 0x40f66d
mov eax, edi
mov ecx, ebx
cmp byte [ecx], 0
je 0x40f64d
inc ecx
sub eax, 1
jne 0x40f642
test eax, eax
je 0x40f657
mov ecx, edi
sub ecx, eax
jmp 0x40f659
xor ecx, ecx
test eax, eax
je 0x40f66d
push ecx
push dword [ebp - 4]
sub edi, ecx
push ecx
add ecx, ebx
mov edx, edi
call fcn.0040e199
push str.WTMR_cm7vfmg1
push 1
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.reg5yydsmmh
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push eax
push 0x4b3
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7f5
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
push str.eiz5qsnu
push str.tv9q5ota
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.log:_calzgk7l
call esi
lea eax, [ebp - 0x290]
push eax
push str.s_2ou3rff0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.MTXyir40xah
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
test eax, eax
je 0x40f73a
push str.log:_f9zn762q
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.log:_whdes9d7
call esi
jmp 0x40f746
push str.8g4zs0s7
push str.lpdlmkdp
call edi
push str.XMLna4dauin
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_c9hhxxgj
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp - 8]
call dword [0x4160e0]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret