Function at 0x409e90
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x204
mov eax, dword [0x4a3f4c]
xor eax, esp
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x20c]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
mov esi, dword [esp + 0x214]
push edi
lea ecx, [esp + 0x10]
push ecx
push 0xf013f
push 0
push ebx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
push edi
push ebx
push ebp
push str.searching_in___s_s__ret_d_n
call fcn.0041f800
add esp, 0x10
test edi, edi
je 0x409f60
cmp edi, 2
je 0x40a0f3
push ebx
lea edx, [esp + 0x20]
push ebp
cmp edi, 5
je 0x409f2a
push edi
push str.error__ld_in_RegOpenKeyEx__s_s
push edx
call fcn.0045a121
lea eax, [esp + 0x30]
push eax
push 0x47c9d8
call fcn.0041f800
add esp, 0x1c
jmp 0x409f47
push str.access_denied_in_RegOpenKeyEx__s_s_nTry_running_DxWnd_with_administrators_rights
push edx
call fcn.0045a121
lea eax, [esp + 0x2c]
push eax
push 0x47c9d8
call fcn.0041f800
add esp, 0x18
push 0
push 0x47c9d0
lea ecx, [esp + 0x24]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40a0f3
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0
lea eax, [esp + 0x20]
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
push edi
push esi
push ebx
push ebp
push str.searching_in___s_s__for___s__ret_d_n
call fcn.0041f800
add esp, 0x14
test edi, edi
je 0x40a00b
cmp edi, 2
je 0x40a00b
push esi
cmp edi, 5
je 0x409fd1
mov edx, dword [esp + 0x14]
push edx
push edi
lea eax, [esp + 0x28]
push str.error__ld_in_RegQueryValue_hk_lx___s_
push eax
call fcn.0045a121
lea ecx, [esp + 0x30]
push ecx
push 0x47c9d8
call fcn.0041f800
add esp, 0x1c
push 0
push 0x47c9d0
lea edx, [esp + 0x24]
push edx
jmp 0x40a003
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push str.access_denied_in_RegQueryValue_hk_lx___s__nTry_running_DxWnd_with_administrators_rights
push ecx
call fcn.0045a121
lea edx, [esp + 0x2c]
push edx
push 0x47c9d8
call fcn.0041f800
add esp, 0x18
push 0
push 0x47c9d0
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x14], 0
jbe 0x40a0e8
push ebx
push ebp
lea ecx, [esp + 0x24]
push str.Found_compatibility_flag_in__s_s
push ecx
call fcn.0045a121
lea edx, [esp + 0x2c]
push edx
push 0x47c9d8
call fcn.0041f800
add esp, 0x18
push 0
push 0x47c9d0
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov edi, eax
push edi
push esi
push edx
push str.RegDeleteValue__x____s___ret_d_n
call fcn.0041f800
add esp, 0x10
test edi, edi
je 0x40a0e8
push esi
cmp edi, 5
je 0x40a0ae
mov eax, dword [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x28]
push str.error__ld_in_RegDeleteValue_hk_lx___s_
push ecx
call fcn.0045a121
lea edx, [esp + 0x30]
push edx
push 0x47c9d8
call fcn.0041f800
add esp, 0x1c
push 0
push 0x47c9d0
lea eax, [esp + 0x24]
push eax
jmp 0x40a0e0
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push str.access_denied_in_RegDeleteValue_hk_lx___s__nTry_running_DxWnd_with_administrators_rights
push edx
call fcn.0045a121
lea eax, [esp + 0x2c]
push eax
push 0x47c9d8
call fcn.0041f800
add esp, 0x18
push 0
push 0x47c9d0
lea ecx, [esp + 0x24]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045a1dd
add esp, 0x204
ret