Function at 0x40eeb3
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x422830]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x40eedd
mov edi, 0x80004003
jmp 0x40f248
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea eax, [ebp - 0x814]
push eax
push ebx
push CreateEventA
push ebx
push ebx
push ebx
push 0x402ee8
push SysReAllocString
call esi
cmp eax, ebx
je 0x40ef18
jle 0x40ef11
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x40f247
push 0x200
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, ebx
jne 0x40ef36
xor edi, edi
jmp 0x40f23b
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebx
lea eax, [ebp - 0x808]
push eax
push ebx
push CreateEventA
push ebx
push ebx
push ebx
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x814]
call esi
cmp eax, ebx
je 0x40ef80
jle 0x40ef79
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x40f23b
lea edx, [edi + 0x14]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x40ef88
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
cmp eax, 0x200
jbe 0x40efab
mov edi, 0x80070057
jmp 0x40f23b
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push edx
push 1
push ebx
push 0x403090
push dword [ebp - 0x808]
call esi
cmp eax, ebx
je 0x40efd2
jg 0x40f263
jmp 0x40f26d
lea edx, [edi + 0x214]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x80c], ecx
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x40efe3
sub eax, dword [ebp - 0x80c]
sar eax, 1
lea eax, [eax + eax + 2]
cmp eax, 0x200
ja 0x40f25a
push eax
push edx
push 1
push ebx
push 0x40307c
push dword [ebp - 0x808]
call esi
cmp eax, ebx
jne 0x40efc7
push 4
pop ebx
push ebx
lea eax, [edi + 0x414]
push eax
push ebx
push 0
push 0x403060
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x40efc7
push ebx
lea eax, [edi + 0x418]
push eax
push ebx
push 0
push 0x403044
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x40efc7
push ebx
lea eax, [edi + 0x10]
push eax
push ebx
push 0
push 0x403038
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x40efc7
push ebx
lea eax, [edi + 0x41c]
push eax
push ebx
push 0
push 0x403010
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x40efc7
push ebx
lea eax, [edi + 0x420]
push eax
push ebx
push 0
push 0x402fe8
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x40efc7
push ebx
lea eax, [edi + 0x424]
push eax
push ebx
push 0
push 0x402fbc
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x40efc7
push ebx
lea eax, [edi + 0x428]
push eax
push ebx
push 0
push 0x402f90
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x40efc7
push ebx
lea eax, [edi + 0x42c]
push eax
push ebx
push 0
push 0x402f74
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x40efc7
push ebx
lea eax, [edi + 0x430]
push eax
push ebx
push 0
push 0x402f50
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x40efc7
and dword [ebp - 0x810], eax
lea ebx, [edi + 0x430]
cmp dword [ebx], eax
jbe 0x40f1eb
add edi, 0x434
mov dword [ebp - 0x80c], edi
push dword [ebp - 0x810]
lea eax, [ebp - 0x804]
push 0x402f30
push 0x400
push eax
call fcn.0040ee51
mov edi, eax
add esp, 0x10
test edi, edi
jl 0x40f247
push 0x200
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x80c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
xor edi, edi
cmp eax, edi
je 0x40f22f
add eax, eax
cmp eax, 0x400
ja 0x40f25a
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push edi
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x40f261
inc dword [ebp - 0x810]
mov eax, dword [ebp - 0x810]
add dword [ebp - 0x80c], 0x10
cmp eax, dword [ebx]
jb 0x40f156
mov eax, dword [0x4275cc]
test eax, eax
mov dword [ebp - 0x80c], eax
je 0x40f22d
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x80c]
push eax
mov ecx, 0x4275cc
call fcn.0040ee27
test eax, eax
je 0x40f224
mov eax, dword [ebp - 0x810]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0x80c], 0
jne 0x40f1fa
xor edi, edi
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0040de61
leave
ret 4
mov edi, 0x80070057
jmp 0x40f22f
jle 0x40f26d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x40f22f