Function at 0x497750
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x57e27d
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62d414]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28c]
mov edi, ecx
mov dword [esp + 0x268], 0
lea eax, [esp + 0x270]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x268], 1
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x4977c8
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4978ab
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x104
lea edx, [esp + 0x58]
push edx
push 0
push eax
call esi
test eax, eax
jne 0x4978a0
mov bl, 2
jmp 0x497810
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x268], bl
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [esp + 0x14]
push ecx
sub esp, 0x1c
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x288], 3
mov byte [esp + 0x288], bl
mov ecx, edi
call fcn.00497750
test al, al
je 0x49788e
mov byte [esp + 0x268], 1
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x14]
push 0x104
lea eax, [esp + 0x58]
push eax
push 0
push ecx
call esi
test eax, eax
je 0x497810
jmp 0x4978a0
mov byte [esp + 0x268], 1
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x4978ba
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
mov byte [esp + 0x268], 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [esp + 0x268], 0xffffffff
lea ecx, [esp + 0x270]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0051ed00
add esp, 0x258
ret 0x20