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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4cc
push ebx
push esi
push edi
push 0x4145f4
xor edi, edi
mov dword [ebp - 8], ecx
xor esi, esi
inc edi
push edi
push esi
push esi
mov ebx, esi
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
push esi
push edi
push eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
mov edi, dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
push 0x414600
push 0x41460c
call edi
push 0x414618
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40fdab
push 0x414624
push 0x414630
call edi
push esi
call dword [0x411020]
jmp 0x40fdb7
push 0x41463c
push 0x414648
call edi
push 0x414654
push 1
xor esi, esi
push esi
call dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40fdd2
push eax
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
push 0x414664
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll____TEg_Td:kJ__FfFpIDL_]
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 0x8d1
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov eax, dword [0x41509c]
push esi
push 2
call eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x41006f
push 0x414670
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 0x41467c
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0xd83
push esi
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
lea eax, [ebp - 0x388]
push eax
push 0x414688
call dword [sym.imp.kernel32.dll_FindFirstFileA]
push eax
call dword [sym.imp.kernel32.dll_pd_3JD9_w_8]
xor eax, eax
push eax
push 0x101c
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x414694
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push esi
call dword [sym.imp.kernel32.dll_]
push 0x4146a0
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x4146ac
push 0
push 1
push 0
call dword [sym.imp.kernel32.dll____TEg_Td:kJ__FfFpIDL_]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_SetEvent]
push esi
call dword [sym.imp.kernel32.dll_ResetEvent]
push 0x4146b8
push 1
push 0
call dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40feff
push eax
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
push 0x4146c8
push 0x4146d4
call edi
jmp 0x40ff05
call dword [sym.imp.kernel32.dll_GetLastError]
mov eax, dword [0x415070]
mov dword [ebp - 0x248], 0x22c
jmp 0x410052
push dword [ebp - 8]
mov eax, dword [0x41511c]
lea ecx, [ebp - 0x224]
push ecx
call eax
test eax, eax
jne 0x41004d
push eax
push 0x406
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
push 0x4146e0
mov esi, eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.kernel32.dll_]
push 0x4146ec
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40ff8a
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
call dword [0x411020]
push 0x4146f8
push 0x414704
call edi
xor esi, esi
jmp 0x40ffb1
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0x20019
push esi
push 0x414710
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push 0x41471c
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor eax, eax
push 0x414728
inc eax
push eax
push esi
call dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40ffe8
push eax
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push 0x414738
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
jmp 0x40fff3
push 0x414744
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [ebp - 0x4c8]
push eax
push 0x414750
call dword [sym.imp.kernel32.dll_FindFirstFileA]
push eax
call dword [sym.imp.kernel32.dll_pd_3JD9_w_8]
push 0x41475c
xor eax, eax
inc eax
push eax
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
push dword [ebp - 0x240]
mov eax, dword [0x415060]
push esi
push 1
call eax
mov esi, eax
test esi, esi
je 0x41004d
mov ecx, dword [0x415118]
push 0
push esi
call ecx
push 1
test eax, eax
pop eax
push esi
cmovne ebx, eax
call dword [0x4150c0]
mov eax, dword [0x41500c]
lea ecx, [ebp - 0x248]
push ecx
push dword [ebp - 4]
call eax
test eax, eax
jne 0x40ff19
push dword [ebp - 4]
call dword [0x4150c0]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret