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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x417408]
push ebx
push esi
push edi
push str.ev_lcpl75u7
xor ebx, ebx
mov dword [ebp - 0x10], eax
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]
push str.SMPHR_gu27spmh
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 edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c3fa
call edi
jmp 0x40c40a
push str.hbqwhowh
push str.ne03y3xh
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0xf86
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push str.log:_4ympeoza
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.XMLuwgraukp
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]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.reghzuad84y
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.WTMR_9o8f5hj7
push 1
push ebx
call esi
test eax, eax
je 0x40c478
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.WTMR_xwqa5bp3
push 1
push ebx
call esi
push str.031e7rv0
push str.hxl3eu5d
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
call edi
lea eax, [ebp - 0x158]
push eax
push str.s_u37n9csy
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
call dword [0x41717c]
cmp dword [ebp - 4], ebx
je 0x40c61a
push str.MTX9sbfglyu
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40c509
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.reg18u9r4l3
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40c519
push str.14jkl7ng
push str.npj2p9ma
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
push 0x4ac
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.log:_y884zl2d
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x298]
push eax
push str.s_yit1zm6t
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.SMPHR_2820vcoz
push 1
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
je 0x40c586
push str.log:_ozpt0x1c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.WTMR_5ar8d5pq
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.emjftx5q
push str.mtu3fal1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test esi, esi
je 0x40c5b3
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
jmp 0x40c5b5
call edi
push dword [ebp - 4]
push ebx
call dword [0x41704c]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x40c61a
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [0x41716c]
cmp dword [ebp - 8], ebx
jbe 0x40c5f5
lea esi, [edi + 0x30]
push dword [ebp - 0x10]
push dword [esi]
call dword [0x4170a4]
test eax, eax
je 0x40c601
inc ebx
add esi, 0x4c
cmp ebx, dword [ebp - 8]
jb 0x40c5dd
push edi
call dword [0x4170cc]
push 0xfffffffffffffffe
pop eax
jmp 0x40c61d
push dword [ebp - 0xc]
imul esi, ebx, 0x4c
add esi, edi
mov edi, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x4170cc]
mov eax, ebx
jmp 0x40c61d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 8