Function at 0x40ecbf
Capabilities:
Check if file exists
Delete registry value
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x40eb40
sub esp, 0x678
mov eax, dword [0x4b37f8]
xor eax, esp
mov dword [esp + 0x674], eax
push ebp
mov ebp, dword [esp + 0x680]
lea eax, [ebp - 0x9001]
push edi
mov edi, ecx
cmp eax, 8
ja case.default.0x40eb6f
push esi
jmp dword [eax*4 + 0x40efac]
mov eax, dword [edi]
push 0x9005
push eax
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040139d
test eax, eax
je 0x40ef8f
mov ecx, dword [edi]
push 0
push 0x3e8
push 0x9005
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40ef8f
mov edx, dword [edi]
push 0x9009
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x4b5784]
mov dword [0x4b5788], eax
jmp 0x40ef8f
mov ecx, dword [edi]
push 0x9007
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [0x4b5784], 1
jne 0x40ef8f
mov dword [0x4b5784], 0
jmp 0x40ef8f
mov edx, dword [edi]
push 0x9008
push edx
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040114a
mov eax, dword [edi]
push 0
push 0x5265c00
push 0x9007
push eax
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40ef8f
mov ecx, dword [edi + 0x3f4]
mov edx, dword [edi + ecx*4 + 0x3d0]
push edx
mov ecx, edi
call fcn.004013f7
inc dword [edi + 0x3f4]
cmp dword [edi + 0x3f4], 6
jle 0x40ef8f
mov dword [edi + 0x3f4], 2
jmp 0x40ef8f
mov eax, dword [edi]
push 0x9006
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, edi
call fcn.00401091
mov eax, dword [edi + 4]
xor esi, esi
cmp eax, esi
je 0x40ef8f
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [edi + 4], esi
jmp 0x40ef8f
mov ecx, dword [edi + 0x3f4]
mov edx, dword [edi + ecx*4 + 0x3d0]
push edx
mov ecx, edi
call fcn.004013f7
mov eax, 1
add dword [edi + 0x3f4], eax
cmp dword [edi + 0x3f4], 2
jle 0x40ef8f
mov dword [edi + 0x3f4], eax
jmp 0x40ef8f
cmp ebp, 0x9002
jne 0x40ecd3
lea eax, [esp + 0xc]
push eax
push str.SoftwareAdobeAcrobat_DistillerSpooledJobs
jmp 0x40ecdd
lea ecx, [esp + 0xc]
push ecx
push str.SoftwareAdobeAcrobat_DistillerEmailJobs
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor esi, esi
cmp eax, esi
jne 0x40ef8f
push ebx
push 0x40e
lea eax, [esp + 0x27a]
xor edx, edx
push esi
push eax
xor ebx, ebx
mov word [esp + 0x280], dx
call fcn.00442c50
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x288]
push edx
push esi
push eax
mov dword [esp + 0x40], 0x410
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40ef64
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc dword [esp + 0x14]
push ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x284]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ee28
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x278]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40eeef
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x12c
call ebp
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x278]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40eeef
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x274]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [esp + 0x68c], 0x9002
jne 0x40ef70
mov eax, dword [edi]
lea edx, [esp + 0x274]
push edx
push eax
call fcn.00401505
jmp 0x40ef80
lea eax, [esp + 0x274]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40ee32
sub eax, edx
sar eax, 1
mov ecx, 0x497940
lea edx, [eax + eax - 6]
sub edx, ecx
lea edx, [esp + edx + 0x274]
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
cmp ax, si
jne 0x40ee53
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40eeef
push 0x12c
call ebp
mov edx, dword [edi]
lea ecx, [esp + 0x274]
push ecx
push edx
call fcn.00401505
lea eax, [esp + 0x27c]
add esp, 8
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40eea0
sub eax, edx
sar eax, 1
lea eax, [eax + eax - 6]
mov ecx, 0x497934
mov edx, eax
sub edx, ecx
lea edx, [esp + edx + 0x274]
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
cmp ax, si
jne 0x40eec3
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x274]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, 0x4b5a28
call fcn.00401091
push 0x40e
lea ecx, [esp + 0x27a]
xor eax, eax
push esi
push ecx
inc ebx
mov word [esp + 0x280], ax
call fcn.00442c50
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x288]
push eax
push ebx
push ecx
mov dword [esp + 0x40], 0x410
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40ed64
cmp ebx, esi
jne 0x40ef83
mov ebp, dword [esp + 0x68c]
mov edx, dword [edi]
push ebp
push edx
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x40ef83
mov edx, dword [edi]
lea ecx, [esp + 0x274]
push ecx
push edx
call fcn.004012a8
add esp, 8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
mov ecx, dword [esp + 0x67c]
pop edi
pop ebp
xor ecx, esp
call fcn.00442c3a
add esp, 0x678
ret 4