Function at 0x40ec90
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4205b3
mov eax, dword fs:[0]
push eax
sub esp, 0x114
push ebx
push esi
push edi
mov eax, dword [0x42a42c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0x80004005
mov dword [ebp - 4], 0
test edi, edi
jne 0x40ed76
xor esi, esi
mov dword [ebp + 0xc], esi
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
add ecx, 0x18
call fcn.0040e850
push esi
mov bl, al
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, bl
je 0x40ef5a
push edi
lea ecx, [ebp - 0x120]
call fcn.004085a0
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040a2b0
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x40ed30
push eax
call fcn.00410d3e
add esp, 4
mov edx, dword [0x429014]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
push 0x5c
push eax
mov byte [ebp - 4], 4
call fcn.0041111b
add esp, 8
test eax, eax
je 0x40ed58
sub eax, dword [ebp + 0xc]
sar eax, 1
mov esi, eax
jns 0x40ed94
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040dfe0
push 0x421ed4
lea ecx, [ebp + 0xc]
call fcn.004096e0
jmp 0x40ee2b
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
jne 0x40ecdc
push 0x8007000e
call fcn.00401180
lea edx, [esi + 1]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040e3e0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0040dfe0
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0xc]
mov byte [ebp - 4], 4
cmp ecx, dword [0x429010]
je 0x40ede0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40ede0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call fcn.00410a7b
add esp, 4
push esi
push 0
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp + 0xc]
call fcn.0040e340
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.0040dfe0
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0xc]
mov byte [ebp - 4], 4
cmp ecx, dword [0x429010]
je 0x40ee2b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40ee2b
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call fcn.00410a7b
add esp, 4
mov edx, dword [0x429014]
mov dword [ebp - 0x14], edx
push 0x42226c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004096e0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407ec0
push 0x422268
push 0x422268
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407ec0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [ebp - 0x14]
call fcn.00407ec0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push SysReAllocString
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [ebp - 0x18]
test eax, eax
jne 0x40eedd
mov esi, dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x40eecb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x1c], 0
test esi, esi
je 0x40eedd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [edi - 0xc]
mov byte [ebp - 4], 4
cmp edx, dword [0x429010]
je 0x40ef07
lea esi, [edi - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
call edi
test eax, eax
jg 0x40ef0d
push esi
call fcn.00410a7b
add esp, 4
jmp 0x40ef0d
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ebx - 0xc]
mov byte [ebp - 4], 3
cmp eax, dword [0x429010]
je 0x40ef2f
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x40ef2f
push esi
call fcn.00410a7b
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
mov byte [ebp - 4], 0
cmp ecx, dword [0x429010]
je 0x40ef5a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x40ef5a
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.00410a7b
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8