Function at 0x40d960
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480c2d
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x664], edi
mov dword [ebp - 0x638], 0
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 2
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x40d9e3
push 0x48fcb8
mov ecx, edi
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
jmp 0x40dc8b
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x654]
push eax
push ebx
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push dword [ebp - 0x62c]
mov dword [ebp - 0x634], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
test eax, eax
jne 0x40dae0
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x658]
push eax
push 0
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x62c]
mov dword [ebp - 0x64c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40daa5
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x640]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::CompareNoCase_wchar_t_const__const]
test eax, eax
jne 0x40da99
lea ecx, [ebp - 0x640]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::IsEmpty_void_const]
test eax, eax
je 0x40dcc1
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 2
call esi
push 0
push 0
lea eax, [ebp - 0x654]
push eax
push 0
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x420]
push eax
inc ebx
push ebx
push dword [ebp - 0x62c]
mov dword [ebp - 0x634], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40da22
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x18
lea eax, [ebp - 0x634]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push dword [ebp - 0x62c]
mov dword [ebp - 0x634], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, 1
test eax, eax
jne 0x40dc6e
lea ecx, [ebp + 8]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
push 0x491ab4
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0x20
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x650], esp
push eax
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_class_OUI::COString_const__]
push ecx
lea eax, [ebp - 0x218]
mov ecx, esp
push eax
mov byte [ebp - 4], 7
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
lea ecx, [ebp - 0x630]
mov byte [ebp - 4], 2
call fcn.0040d960
add esp, 8
lea ecx, [ebp - 0x630]
mov byte [ebp - 4], 8
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::IsEmpty_void_const]
test eax, eax
je 0x40deb7
lea ecx, [ebp - 0x630]
mov byte [ebp - 4], 2
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x18
lea eax, [ebp - 0x634]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push dword [ebp - 0x62c]
mov dword [ebp - 0x634], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc ebx
test eax, eax
je 0x40db54
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x48fcb8
mov ecx, edi
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
mov byte [ebp - 4], 1
mov dword [ebp - 0x638], 1
lea ecx, [ebp + 8]
call esi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_wchar_t_const__]
push str.SOFTWAREClientsStartMenuInternet
lea ecx, [ebp - 0x63c]
call ebx
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 4
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::GetLength_void_const]
inc eax
push eax
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.ouilibx.dll_public:_class_OUI::COString___thiscall_OUI::COString::Mid_int_]
push 0x491ab4
lea ecx, [ebp - 0x630]
mov byte [ebp - 4], 5
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::Find_wchar_t_const__const]
mov dword [ebp - 0x65c], eax
cmp eax, 0xffffffff
je 0x40de93
lea ecx, [ebp - 0x63c]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::GetLength_void_const]
mov ecx, dword [ebp - 0x65c]
inc ecx
add eax, ecx
push eax
push 0
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.ouilibx.dll_public:_class_OUI::COString___thiscall_OUI::COString::Mid_int__int_]
push str._shellopencommand
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 6
call dword [0x48a95c]
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x644]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x40dddf
push dword [ebp - 0x62c]
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
push 0x48fcb8
mov ecx, edi
call ebx
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x638], 1
mov byte [ebp - 4], 5
call esi
lea ecx, [ebp - 0x630]
mov byte [ebp - 4], 4
call esi
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 2
call esi
mov byte [ebp - 4], 1
jmp 0x40dc95
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x650]
push eax
push 0
push 0
push dword [ebp - 0x648]
mov dword [ebp - 0x660], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x648]
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call ebx
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x638], 1
mov byte [ebp - 4], 5
call esi
lea ecx, [ebp - 0x630]
mov byte [ebp - 4], 4
call esi
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 2
call esi
mov byte [ebp - 4], 1
jmp 0x40dc95
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x48fcb8
mov ecx, edi
call ebx
mov dword [ebp - 0x638], 1
jmp 0x40ddb2
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x630]
push eax
mov ecx, edi
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_class_OUI::COString_const__]
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x638], 1
mov byte [ebp - 4], 2
call esi
mov byte [ebp - 4], 1
jmp 0x40dc95