Function at 0x40e240
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
movzx eax, word [edi + 0x14]
mov ecx, 0xf003f
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x408], 0
cmp eax, 9
je 0x40e29e
cmp eax, 6
je 0x40e29e
test ax, ax
jne 0x40e51b
mov dword [ebp - 0x410], ecx
jmp 0x40e2ae
cmp dword [ebp + 0x14], 0
jne 0x40e2ae
mov dword [ebp - 0x410], 0xf013f
mov ecx, dword [ebp - 0x410]
lea eax, [ebp - 0x408]
push eax
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e51b
push 0x3fe
mov dword [ebp - 0x40c], 0x200
push eax
cmp dword [ebp + 0x10], eax
jne 0x40e393
lea eax, [ebp - 0x402]
xor edx, edx
push eax
mov word [ebp - 0x404], dx
call fcn.005149a0
mov eax, dword [ebp - 0x408]
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x404]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0x408]
test eax, eax
jne 0x40e34a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x404]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40e45a
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x402]
xor eax, eax
push ecx
mov word [ebp - 0x404], ax
call fcn.005149a0
mov ecx, dword [ebp - 0x408]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x404]
push eax
push 0
push ecx
call ebx
test eax, eax
jne 0x40e449
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 0x408]
push eax
lea ecx, [ebp - 0x404]
push ecx
push edx
mov ecx, edi
call fcn.0040e240
mov esi, eax
test esi, esi
jne 0x40e4c6
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x40c], 0x200
mov word [ebp - 0x404], ax
call fcn.005149a0
mov ecx, dword [ebp - 0x408]
add esp, 0xc
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x404]
push eax
push esi
push ecx
call ebx
test eax, eax
je 0x40e3d6
mov esi, dword [ebp - 0x418]
cmp eax, 0x103
jne 0x40e50e
mov ebx, dword [ebp - 0x414]
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dword [ebp - 0x410], 0x100
je 0x40e4e8
push str.AdvAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40e4e8
push str.RegDeleteKeyExW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e4e8
push 0
push 0x100
push ebx
push esi
call eax
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0x65b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 0x10
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0x65b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x65b
pop ebx
call fcn.00514990
mov esp, ebp
pop ebp
ret 0x10