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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
push ebx
push esi
push edi
push str.WTMR_7h2c73ml
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov edi, eax
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
push str.reg03kuim9g
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
test edi, edi
je 0x40a214
push edi
call ebx
push str.WTMR_tx0frsv8
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push eax
call ebx
push str.MTXr6g06agb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, eax
test ebx, ebx
je 0x40a25d
push str.log:_4dwriqkn
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x40a291
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
push str.reghm782oif
push 0x80000001
call ebx
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push str.regx21rcw41
push 0x80000001
call ebx
lea eax, [ebp - 0x2bc]
push eax
push str.s_tvdg12s9
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
push eax
push 0xc07
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SMPHR_lf9ezkq5
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
je 0x40a2eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.XMLo9nozdus
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
and dword [ebp - 0x2c], 0
push 0xc350
push 0x40
call dword [0x41704c]
push 0x18
push 0x40
mov dword [ebp - 0xc], eax
call dword [0x41704c]
push 0x208
push 0x40
mov dword [ebp - 8], eax
call dword [0x41704c]
cmp word [esi], 0x68
mov dword [ebp - 0x1c], eax
jne 0x40acea
push 0x74
pop eax
cmp word [esi + 2], ax
jne 0x40acea
cmp word [esi + 4], ax
jne 0x40acea
cmp word [esi + 6], 0x70
jne 0x40acea
push dword [0x4174d0]
movzx eax, word [esi + 8]
push esi
mov dword [ebp - 0x24], eax
call dword [0x417190]
and dword [ebp - 0x10], 0
add eax, 6
mov dword [ebp - 0x14], eax
xor cl, cl
push 0x2f
movzx eax, word [eax]
mov edx, eax
mov dword [ebp - 0x20], edx
pop edx
mov dword [ebp - 0x18], edx
cmp ax, dx
je 0x40a3d2
mov esi, dword [ebp - 8]
xor edx, edx
movzx edi, ax
movzx eax, di
cmp eax, 0x3a
jne 0x40a3a0
mov cl, 1
jmp 0x40a3b3
test cl, cl
jne 0x40a3ad
mov edi, dword [ebp - 0x1c]
mov word [edx + edi], ax
jmp 0x40a3b3
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x14]
movzx eax, word [edx + eax]
mov edi, eax
cmp ax, word [ebp - 0x18]
jne 0x40a394
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x1c]
call dword [0x417090]
push dword [ebp - 8]
mov esi, eax
call dword [0x417090]
push dword [ebp - 8]
add esi, eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi*2]
add eax, 2
mov dword [ebp - 0x20], eax
call dword [0x417078]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push str.reg85edlliz
push 0x80000001
call ebx
push str.WTMR_3cda6oqt
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.log:_0tw383yu
call edi
push str.XMLfc2qhit1
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]
push str.5tshiyq0
push str.tquwrqxp
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x939
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x38]
push eax
push 0x20019
push 0
push str.regc47cfi3n
push 0x80000001
call ebx
push str.WTMR_0c4rk10x
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40a4aa
push eax
call esi
push str.log:_9ix5nk5g
call edi
push str.ev_7r7ec1lq
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 eax, eax
push eax
push 0x683
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push str.log:_1t49m61v
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SMPHR_nyhse1wa
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push dword [ebp - 8]
call dword [0x4170cc]
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push eax
push 0xfde9
call dword [0x4170e8]
mov esi, eax
lea ecx, [esi + 0x40]
push ecx
push 0x40
call dword [0x41704c]
mov dword [ebp - 0x10], eax
test esi, esi
je 0x40a554
xor ecx, ecx
push ecx
push ecx
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ecx
push 0xfde9
call dword [0x4170e8]
test eax, eax
je 0x40acea
push str.WTMR_mt3bbikq
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.log:_2ussfsz2
mov esi, eax
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
call esi
push str.XMLbzc39s88
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]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push str.regzisy1x47
push 0x80000001
call ebx
push str.SMPHR_3b2r7lwl
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]
push str.WTMR_hedzr4jd
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40a5e0
push eax
call esi
push str.MTX7m3ovvmf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40a60a
push str.log:_o60eux9c
call edi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.log:_2f28vczq
jmp 0x40a60f
push str.log:_qeq6oav3
call edi
xor eax, eax
push eax
push 0x46f
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push str.99tg8qim
push str.bvi5nwx5
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xor eax, eax
push eax
push eax
push eax
push eax
push str.Xmlst
call dword [0x41712c]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40aa7d
push 1
xor ecx, ecx
push ecx
push 3
push ecx
push ecx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
call dword [0x417184]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40a965
cmp word [ebp - 0x24], 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 - 0x20]
push dword [0x4172a0]
push eax
call dword [0x4170bc]
mov dword [ebp - 8], eax
test eax, eax
je 0x40a95c
push str.XMLla2gh1ao
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]
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push str.reg69ng1c4n
push 0x80000001
call ebx
push str.ev_0jmzclcl
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 0x42d
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.log:_d7nmnzlk
call edi
lea eax, [ebp - 0x3fc]
push eax
push str.s_q6b6asgo
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.t437kmhd
push str.gcpinz2x
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.MTX09u9b8q9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40a75d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40a763
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WTMR_erjmezh6
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x40a795
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.n2rzgkdl
push str.uf50ofvn
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, dword [ebp - 0x10]
push esi
call dword [0x41719c]
push eax
push esi
push dword [ebp + 0xc]
call dword [0x417090]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [0x417018]
test eax, eax
je 0x40a953
push str.XML3y9pbffs
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]
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push str.reg050v0xjo
push 0x80000001
call ebx
push str.ev_v8mcmwj6
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.SMPHR_k8e82fz9
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
je 0x40a83c
push str.log:_ggqa70rr
call edi
jmp 0x40a84c
push str.bi1gi9gl
push str.0vnxhle5
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea eax, [ebp - 0x53c]
push eax
push str.s_bp9g1sd2
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xdb0
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
push eax
push 0xe87
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.MTXe1rwy9uy
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40a8c2
push str.oyfor3wf
push str.bknkwwqu
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40a8c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WTMR_qfltqc33
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 str.WTMR_ueq2mmbb
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40a900
push eax
call esi
jmp 0x40a910
push str.jxdpgela
push str.kustj1v2
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push 0xc350
push dword [ebp - 0xc]
push esi
call dword [0x417100]
test eax, eax
je 0x40a953
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40a94d
mov byte [eax + edi], 0
lea eax, [ebp - 0x14]
push eax
push 0xc350
push edi
push esi
call dword [0x417100]
test eax, eax
jne 0x40a92d
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 8]
call dword [0x41706c]
push dword [ebp - 0x18]
call dword [0x41706c]
push str.MTXj3gu1c69
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
test esi, esi
je 0x40a9a1
push str.regydhbdwb8
push 0x80000001
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.log:_f2a54uo2
call edi
jmp 0x40a9ad
push str.regnx2jadyz
push 0x80000001
call ebx
push str.SMPHR_xjxsk88q
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.log:_ro3jk3mv
mov esi, eax
call edi
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x40a9dd
push str.log:_p2hsajxw
jmp 0x40a9e2
push str.log:_ppdo11e6
call edi
push str.WTMR_hszl7rbc
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.uwutmtsw
push str.7qxzlm8y
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
push str.reg0pqc4oj1
push 0x80000001
call ebx
lea eax, [ebp - 0x17c]
push eax
push str.s_lg8c4ue8
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.XMLwyf4c164
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]
push 0x7e8
push 0
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]
push dword [ebp - 0x28]
call dword [0x41706c]
push str.SMPHR_xzecjlku
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.WTMR_rih7x40e
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
push 0x20019
push 0
push str.regvk0y46zn
push 0x80000001
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push esi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str.3lwtpsp0
push str.wn8hur32
call esi
lea eax, [ebp - 0x67c]
push eax
push str.s_cdzli2ch
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.XMLzsndo2gt
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]
push str.ev7fjigr
push str.2xggp6yd
call esi
push str.WTMR_684o09fz
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.u93fszu1
push str.3tcnzxo7
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test esi, esi
je 0x40ab4f
push esi
call ebx
jmp 0x40ab56
push str.log:_x8rqt7vn
call edi
push 0x940
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push ebx
mov ebx, dword [ebp - 0xc]
push ebx
call dword [0x41719c]
inc eax
push eax
push ebx
push 0
push 0xfde9
call dword [0x4170b0]
mov ebx, eax
test ebx, ebx
je 0x40acc7
push str.XMLz8t7qvto
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]
push 6
pop esi
push str.log:_r1auj44w
call edi
sub esi, 1
jne 0x40abb0
push 0xf69
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]
push str.log:_riloegbr
call edi
push str.WTMR_p240ejws
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40abff
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.log:_dzc01bs3
call edi
lea eax, [ebp - 0x17c]
push eax
push str.s_m88cwhik
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
push eax
push 0x286
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 str.MTXcgly634y
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
test esi, esi
je 0x40ac84
push str.regk7pd5ro7
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.5gzmnpic
push str.gbsqy21z
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x40ac94
push str.regx9p1kwk5
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea esi, [ebx + ebx]
push esi
push 0x40
call dword [0x41704c]
push ebx
mov ebx, dword [ebp - 0xc]
mov edi, eax
push edi
push ebx
call dword [0x41719c]
inc eax
push eax
push ebx
push 0
push 0xfde9
call dword [0x4170b0]
xor eax, eax
mov word [esi + edi - 2], ax
jmp 0x40accd
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x2c]
push dword [ebp - 0x10]
call dword [0x4170cc]
push dword [ebp - 0x1c]
call dword [0x4170cc]
push ebx
call dword [0x4170cc]
mov eax, edi
jmp 0x40acec
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret