Function at 0x405c30
Capabilities:
Query or enumerate registry key via stdregprov

Disassembly:
push 0xffffffffffffffff
push 0x5747da
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0x94]
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0xc], ebp
mov dword [esp + 0x24], eax
je 0x405fb1
cmp dword [esi], ebp
je 0x405fb1
cmp dword [esi + 4], ebp
je 0x405fb1
cmp dword [esi + 8], ebp
je 0x405fb1
cmp dword [esi + 0x28], ebp
je 0x405fde
cmp dword [esi + 0x44], ebp
je 0x405fde
lea ecx, [esp + 0x28]
push ecx
mov edi, str.EnumKey
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call fcn.00404c90
mov dword [esp + 0x8c], ebp
mov eax, dword [eax]
cmp eax, ebp
je 0x405cd5
mov ecx, dword [eax]
jmp 0x405cd7
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [eax]
push ebp
lea edi, [esp + 0x20]
push edi
push ebp
push ecx
push eax
mov eax, dword [edx + 0x4c]
call eax
lea edi, [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x8c], 0xffffffff
call fcn.00404d30
cmp ebx, ebp
jl 0x405fda
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x405fb1
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push ebp
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov edi, eax
cmp edi, ebp
jl 0x405f93
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405f93
push ebp
lea edx, [esp + 0x38]
push edx
push ebp
mov word [esp + 0x40], 3
mov dword [esp + 0x48], reloc.WS2_32.dll_closesocket
mov ecx, dword [eax]
push str.hDefKey
push eax
mov eax, dword [ecx + 0x14]
call eax
mov edi, eax
cmp edi, ebp
jge 0x405d9b
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x405d7c
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405d7c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x405d94
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x405d94
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, edi
jmp 0x405fb6
mov edi, dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
push 0x5c3a94
lea ecx, [esi + 0x30]
push ecx
lea edx, [esp + 0x4c]
push edx
call edi
add esp, 0xc
mov ebx, 8
mov dword [esp + 0x8c], 1
cmp dword [esi + 0x2c], ebx
jb 0x405dce
mov ecx, dword [esi + 0x18]
jmp 0x405dd1
lea ecx, [esi + 0x18]
push ecx
push eax
lea eax, [esp + 0x68]
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x44]
mov byte [esp + 0x8c], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x78], ebx
mov eax, dword [esp + 0x64]
mov word [esp + 0x34], bx
jae 0x405e02
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push ebp
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push ebp
push 0x5c3a98
push eax
mov eax, dword [ecx + 0x14]
call eax
mov edi, eax
cmp edi, ebp
jge 0x405e7f
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x405e47
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405e47
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x405e63
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x405e63
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x60]
mov dword [esp + 0x8c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
jmp 0x405fb6
lea ecx, [esp + 0x30]
push ecx
mov edi, str.EnumKey
call fcn.00404c90
mov ebx, eax
lea edx, [esp + 0x2c]
push edx
mov edi, str.StdRegProv
mov byte [esp + 0x90], 4
call fcn.00404c90
mov byte [esp + 0x8c], 5
mov ecx, dword [ebx]
cmp ecx, ebp
je 0x405eb9
mov ecx, dword [ecx]
jmp 0x405ebb
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebp
je 0x405ec5
mov eax, dword [eax]
jmp 0x405ec7
xor eax, eax
mov esi, dword [esi + 4]
mov edx, dword [esi]
push ebp
lea edi, [esp + 0x24]
push edi
mov edi, dword [esp + 0x20]
push edi
push ebp
push ebp
push ecx
push eax
mov eax, dword [edx + 0x60]
push esi
call eax
lea edi, [esp + 0x2c]
mov esi, eax
call fcn.00404d30
lea edi, [esp + 0x30]
mov byte [esp + 0x8c], 3
call fcn.00404d30
cmp esi, 0x80041002
jne 0x405f0f
mov ecx, dword [esp + 0x24]
mov dword [ecx], ebp
xor esi, esi
jmp 0x405f26
cmp esi, ebp
jl 0x405f21
mov edx, dword [esp + 0x24]
mov dword [edx], 1
xor esi, esi
jmp 0x405f26
mov esi, 0x80004005
lea eax, [esp + 0x20]
test eax, eax
je 0x405f42
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x405f42
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebp
lea eax, [esp + 0x18]
test eax, eax
je 0x405f5e
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405f5e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x1c]
test eax, eax
je 0x405f7a
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x405f7a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x60]
mov dword [esp + 0x8c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
jmp 0x405fb6
lea eax, [esp + 0x1c]
test eax, eax
je 0x405fab
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x405fab
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, ebp
mov eax, edi
jl 0x405fb6
mov eax, 0x80004005
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0044e502
add esp, 0x7c
ret 4
mov eax, ebx
jmp 0x405fb6
mov eax, 0x80070057
jmp 0x405fb6