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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8f8
push ebx
push esi
push edi
push str.ev_xqlsxpiz
xor ebx, ebx
mov edi, ecx
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 ebx
push 0x334
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
push 0x20019
push ebx
push str.reg6s430nkm
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.log:_1q3t1p2e
call ebx
push str.WTMR_pmi0w6os
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push 0xb94
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x2b4]
push eax
push str.s_up3ocssh
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.SMPHR_9u7tr3hm
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.5tw6upkh
push str.p47k8uhl
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 0x409e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409e26
push str.log:_7yqaqqre
call ebx
push str.MTX3qo2jxk6
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xc350
push 0x40
mov dword [ebp - 0x1c], ebx
call dword [0x41604c]
push 0x18
push 0x40
mov dword [ebp - 0x14], eax
call dword [0x41604c]
push 0x208
push 0x40
mov dword [ebp - 0xc], eax
call dword [0x41604c]
cmp word [edi], 0x68
mov dword [ebp - 0x18], eax
jne 0x40a74d
push 0x74
pop eax
cmp word [edi + 2], ax
jne 0x40a74d
cmp word [edi + 4], ax
jne 0x40a74d
cmp word [edi + 6], 0x70
jne 0x40a74d
push dword [0x4164d0]
movzx eax, word [edi + 8]
push edi
mov dword [ebp - 0x20], eax
call dword [0x416190]
add eax, 6
mov cl, bl
push 0x2f
mov dword [ebp - 8], eax
pop edx
movzx eax, word [eax]
mov dword [ebp - 0x10], edx
mov esi, eax
cmp ax, dx
je 0x409ef4
mov edi, dword [ebp - 0xc]
xor edx, edx
movzx eax, si
cmp eax, 0x3a
jne 0x409ece
mov cl, 1
jmp 0x409ee1
test cl, cl
jne 0x409edb
mov esi, dword [ebp - 0x18]
mov word [edx + esi], ax
jmp 0x409ee1
mov word [edi], ax
add edi, 2
mov eax, dword [ebp - 8]
inc ebx
lea edx, [ebx + ebx]
movzx eax, word [edx + eax]
mov esi, eax
cmp ax, word [ebp - 0x10]
jne 0x409ec2
push dword [ebp - 0x18]
call dword [0x416090]
mov ebx, dword [ebp - 0xc]
mov esi, eax
push ebx
call dword [0x416090]
add esi, eax
mov eax, dword [ebp - 8]
push ebx
lea eax, [eax + esi*2]
add eax, 2
mov dword [ebp - 8], eax
call dword [0x416078]
push str.XMLxdftitiy
push 1
push 0
push 0
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 3
pop esi
push str.log:_21lqy36z
call edi
sub esi, 1
jne 0x409f46
lea eax, [ebp - 0x3f4]
push eax
push str.s_mi6gohmu
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.MTXt4huqlwd
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x409f83
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
push eax
push 0xc1b
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push str.aa0h6caz
push str.afcjs6qh
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.log:_wiwueeho
call edi
push str.WTMR_t4z6ip3r
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.log:_yotfc8m0
mov esi, eax
call edi
test esi, esi
je 0x409fdc
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
jmp 0x409fe2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [0x4160cc]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push 0xfde9
call dword [0x4160e8]
mov esi, eax
lea ecx, [esi + 0x40]
push ecx
push 0x40
call dword [0x41604c]
mov dword [ebp - 0xc], eax
test esi, esi
je 0x40a032
push ebx
push ebx
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push 0xfde9
call dword [0x4160e8]
test eax, eax
je 0x40a74d
lea eax, [ebp - 0x534]
push eax
push str.s_2enut3od
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.SMPHR_k6djlni8
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.mgi2mcta
push str.pmg0c9my
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x40a089
push str.log:_ki31bszj
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x40a0a5
lea eax, [ebp - 0x24]
push eax
push 0x20019
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.regpoah5d8b
push 0x80000001
call ebx
push 0x8e4
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.ev_7iw3x2ds
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.MTXgbkdmwlt
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40a10d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push str.regrsg0s5fa
push 0x80000001
call ebx
jmp 0x40a113
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WTMR_liwyi8ky
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push eax
call esi
push str.WTMR_b9io4kxu
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40a141
push eax
call esi
xor eax, eax
push eax
push eax
push eax
push eax
push str.Xmlst
call dword [0x41612c]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40a513
push 1
xor ecx, ecx
push ecx
push 3
push ecx
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push eax
call dword [0x416184]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40a408
cmp word [ebp - 0x20], 0x73
mov edx, 0xc00000
push 1
mov ecx, 0x400000
cmove ecx, edx
push ecx
push dword [ebp + 0x10]
push 0
push 0
push dword [ebp - 8]
push dword [0x4162a0]
push eax
call dword [0x4160bc]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x40a3f9
push str.WTMR_o54cswzk
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.regviix1djl
push 0x80000001
call ebx
push str.SMPHR_qzqag83j
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.log:_1mdm2ej9
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call esi
lea eax, [ebp - 0x674]
push eax
push str.s_9pg3r7hq
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.XMLgd3ye5d7
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push 1
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WTMR_aj7h0z2t
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40a274
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.regjfbjwqmq
jmp 0x40a284
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.reg02auv3nq
push 0x80000001
call ebx
mov esi, dword [ebp - 0xc]
push esi
call dword [0x41619c]
push eax
push esi
push dword [ebp + 0xc]
call dword [0x416090]
push eax
push dword [ebp + 0xc]
push edi
call dword [0x416018]
test eax, eax
je 0x40a3f2
push str.WTMR_klky6k1n
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
call esi
push 3
pop edi
push str.l0n54y2v
push str.s1iiosnw
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
sub edi, 1
jne 0x40a2d6
push str.WTMR_o2sfmq84
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov edi, dword [ebp - 0x20]
test eax, eax
je 0x40a313
push eax
call esi
push str.tdtr3nkd
push str.pvpocic9
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.ev_75abuiuk
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]
lea eax, [ebp - 0x7b4]
push eax
push str.s_l0z2trrn
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x3bc
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.SMPHR_bng00wg0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push str.regpxpcryjv
push 0x80000001
call ebx
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.MTXmpxwd7rt
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40a3cd
push str.log:_9tkvlc9x
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.msrul0ab
push str.xrwx76ax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, dword [ebp - 0x14]
jmp 0x40a3dd
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a3f2
mov byte [eax + esi], 0
lea eax, [ebp - 8]
push eax
push 0xc350
push esi
push edi
call dword [0x416100]
test eax, eax
jne 0x40a3d2
push edi
call dword [0x41606c]
push dword [ebp - 0x10]
call dword [0x41606c]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.MTXp2iqng9v
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40a43b
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push str.regv0kj0qok
push 0x80000001
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebp - 0x174]
push eax
push str.s_kxmggbgu
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.WTMR_wrefxoej
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.log:_6b2z4mhw
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
push eax
push 0x126d
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
push str.regd317wbyn
push 0x80000001
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.log:_r0lpdq2k
call edi
push str.SMPHR_vyob6u6g
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.log:_cr5fd5xf
mov esi, eax
call edi
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x40a4e6
push str.log:_9x6ypxb7
call edi
jmp 0x40a4fd
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push str.regic7ujfhy
push 0x80000001
call ebx
push 0x3f5
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 0x24]
call dword [0x41606c]
push str.MTXwutsim3j
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40a52f
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40a536
push str.log:_ike36ax3
call edi
push str.r23jw3py
push str.g2i0ch7v
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0xa1a
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push str.y5la1roh
push str.fq8xr935
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.SMPHR_euw88jjy
push 1
push 0
push 0
call esi
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x40a597
push str.log:_qyi19tj0
call edi
jmp 0x40a5ae
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
push str.regwllyjy7i
push 0x80000001
call ebx
push str.XMLozt7lyh9
push 1
push 0
push 0
call esi
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea eax, [ebp - 0x8f4]
push eax
push str.s_qaihmhqy
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
push eax
push 0xc91
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
push 0
push 0
push esi
call dword [0x41619c]
inc eax
push eax
push esi
push 0
push 0xfde9
call dword [0x4160b0]
mov edi, eax
test edi, edi
je 0x40a72a
push str.ev_f2pcpk95
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]
lea eax, [ebp - 0x174]
push eax
push str.s_pqxykw4b
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.SMPHR_5wgkk84b
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x40a693
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
push str.regqy9b8ot0
push 0x80000001
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.WTMR_dtmk13fe
push 1
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.WTMR_hqearcy3
push 1
push 0
call esi
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push str.regfgo4vtgu
push 0x80000001
call ebx
test esi, esi
je 0x40a6dc
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
jmp 0x40a6f3
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
push str.regn7tr9wyr
push 0x80000001
call ebx
lea esi, [edi + edi]
push esi
push 0x40
call dword [0x41604c]
mov ebx, dword [ebp - 0x14]
push edi
push eax
push ebx
mov dword [ebp - 0x1c], eax
call dword [0x41619c]
inc eax
push eax
push ebx
push 0
push 0xfde9
call dword [0x4160b0]
mov edi, dword [ebp - 0x1c]
xor eax, eax
mov word [esi + edi - 2], ax
jmp 0x40a730
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0xc]
call dword [0x4160cc]
push dword [ebp - 0x18]
call dword [0x4160cc]
push ebx
call dword [0x4160cc]
mov eax, edi
jmp 0x40a74f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret