Function at 0x45b8c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46f7b7
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea edx, [esp + 0x4c]
push edx
push esi
push esi
mov dword [esp + 0x498], esi
mov eax, dword [ebx + 4]
push esi
push eax
mov dword [esp + 0x60], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
je 0x45b968
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ebx, [esp + 0x20]
mov dword [esp + 0x470], 0xffffffff
call fcn.0045cf00
xor al, al
jmp 0x45bbce
xor edi, edi
cmp dword [esp + 0x30], esi
jbe 0x45b9f3
push 0x3fe
lea ecx, [esp + 0x62]
push esi
push ecx
mov word [esp + 0x68], si
call sub.ntdll.dll_memset
mov ecx, dword [ebx + 4]
add esp, 0xc
push esi
push esi
push esi
push esi
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x70]
push eax
push edi
push ecx
mov dword [esp + 0x58], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x45b9ea
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x44]
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__::constructor_wchar_t_const__]
lea eax, [esp + 0x40]
push eax
lea esi, [esp + 0x24]
mov byte [esp + 0x474], 1
call fcn.0045cd90
lea ecx, [esp + 0x40]
mov byte [esp + 0x470], 0
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_]
xor esi, esi
add edi, 1
cmp edi, dword [esp + 0x30]
jb 0x45b974
mov edi, dword [esp + 0x28]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x24]
xor ebx, ebx
test esi, esi
je 0x45ba44
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x45ba44
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + esi + 0x14]
mov edx, dword [esp + 0x1c]
add ebx, 1
lea ecx, [edx + ecx*2 + 2]
add eax, 0x1c
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jmp 0x45ba05
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
add edx, 2
cmp eax, edx
mov dword [esp + 0x1c], edx
jae 0x45ba93
test esi, esi
mov dword [ecx], edx
mov dword [esp + 0x470], 0xffffffff
je 0x45ba8c
cmp esi, edi
je 0x45ba83
mov edi, edi
mov ecx, esi
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_]
add esi, 0x1c
cmp esi, edi
jne 0x45ba70
mov esi, dword [esp + 0x24]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
xor al, al
jmp 0x45bbce
mov ebx, dword [esp + 0x14]
push eax
push 0
push ebx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea ecx, [ecx]
test esi, esi
je 0x45bb8e
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x45bb8e
test esi, esi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + esi + 0x14]
mov dword [esp + 0x3c], edx
je 0x45bb00
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45bb0e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + esi + 0x18], 8
jb 0x45bb1b
mov esi, dword [ecx + esi + 4]
jmp 0x45bb1f
lea esi, [ecx + esi + 4]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
lea ecx, [eax + eax + 2]
push ecx
push esi
push edx
call sub.ntdll.dll_memcpy
mov esi, dword [esp + 0x30]
add esp, 0xc
test esi, esi
je 0x45bb5d
mov edi, dword [esp + 0x28]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45bb6b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi + 0x14]
mov edx, dword [esp + 0x18]
add ebx, 1
lea ecx, [edx + ecx*2 + 2]
add eax, 0x1c
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jmp 0x45bab0
test esi, esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov dword [eax], edx
mov dword [esp + 0x470], 0xffffffff
je 0x45bbcc
cmp esi, edi
je 0x45bbc3
jmp 0x45bbb0
mov ecx, esi
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_]
add esi, 0x1c
cmp esi, edi
jne 0x45bbb0
mov esi, dword [esp + 0x24]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.0046d6fd
mov esp, ebp
pop ebp
ret 8