Function at 0x4090d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4932fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x8474
call fcn.00491fc0
mov eax, dword [0x4bdc98]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
xor eax, ebp
mov dword [esp + 0x847c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
xor eax, eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov word [esp + 0x270], bx
mov ecx, 0x81
lea edi, [esp + 0x272]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esi]
push ebx
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x298]
push edx
push eax
mov dword [esp + 0x58], 0x104
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x409255
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x10], edi
jbe 0x409255
mov eax, dword [esi]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48c]
push edx
push edi
push eax
mov dword [esp + 0x34], 0x3fff
mov word [esp + 0x498], bx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
jne 0x409244
xor eax, eax
mov word [esp + 0x68], bx
mov ecx, 0x81
lea edi, [esp + 0x6a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x6c]
push edx
mov edx, dword [esi]
stosw word es:[edi], ax
lea eax, [esp + 0x28]
push eax
push ebx
lea ecx, [esp + 0x488]
push ecx
push edx
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x409255
cmp dword [esp + 0xc], ebx
je 0x409255
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x18], 8
jb 0x40922a
mov eax, dword [eax + 4]
jmp 0x40922d
add eax, 4
lea ecx, [esp + 0x68]
push ecx
push eax
call dword [sym.imp.MSVCR71.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40927c
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jb 0x4091a1
xor eax, eax
mov ecx, dword [esp + 0x8484]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x847c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491e29
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esp + 0x478]
push edx
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ecx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x8490], ebx
call dword [sym.imp.MSVCP71.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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x848c], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x409257