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

Disassembly:
push 0xffffffffffffffff
push 0x43aa63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x578
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x85]
mov byte [esp + 0x84], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x104
mov edx, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x48], edx
mov byte [esp + 0x4c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp + 0x20]
lea ecx, [ebp + 0x1c]
push eax
mov dword [esp + 0x594], ebx
mov edx, dword [eax]
push edx
lea edx, [esp + 0x30]
push edx
call fcn.0041b540
mov eax, dword [esp + 0x18]
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x28], esi
je 0x41b10d
mov ecx, dword [esp + 0x18]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x24], ebx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x24]
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push ebx
lea ecx, [esp + 0x94]
push eax
mov eax, dword [ebp + 4]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x41b0c4
mov ebp, dword [ebp + 0x10]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x188]
cmp ebp, ebx
rep stosd dword es:[edi], eax
jne 0x41af03
mov ebp, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x84]
lea edx, [esp + 0x188]
push ecx
push ebp
push 0x4443ec
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x198]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x4c]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41af70
mov edi, dword [esp + 0x4c]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x188]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x50], ebp
mov byte [ecx + ebp], bl
mov eax, dword [esp + 0x4c]
cmp eax, ebx
jne 0x41af7d
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ebp, dword [esp + 0x20]
lea edi, [ebp + 8]
push edi
push 0xf003f
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41b103
mov ecx, dword [edi]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x48]
push esi
push eax
push ebx
push str.DisplayName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41b09f
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov dl, byte [esp + 0x13]
mov dword [esp + 0x30], ebx
not ecx
dec ecx
mov byte [esp + 0x2c], dl
push ecx
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x58]
push eax
mov byte [esp + 0x594], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [esp + 0x68], ebx
lea ecx, [esp + 0x58]
lea edx, [esp + 0x74]
push ecx
push edx
lea ecx, [ebp + 0x1c]
mov byte [esp + 0x598], 2
call fcn.004060e0
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x3c]
mov edx, dword [eax + 4]
lea eax, [esp + 0x40]
push eax
push ecx
lea ecx, [esp + 0x74]
mov dword [esp + 0x48], edx
call fcn.00437160
mov edi, dword [eax]
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x594], 1
mov edx, dword [eax + 4]
mov dword [esp + 0x84], edx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dword [edi + 0x1c], 1
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov byte [esp + 0x590], bl
je 0x41b093
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x41b08a
cmp al, 0xff
je 0x41b08a
dec al
mov byte [ecx], al
jmp 0x41b093
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov eax, 0x104
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov ecx, 0x41
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
inc dword [esp + 0x24]
jmp 0x41aebe
cmp eax, 0x103
je 0x41b0cf
mov dword [esp + 0x14], ebx
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x41b0e9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], ebx
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x41b11d
mov al, byte [ecx - 1]
cmp al, bl
je 0x41b113
cmp al, 0xff
je 0x41b113
dec al
mov byte [ecx - 1], al
jmp 0x41b11d
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
jmp 0x41b0cf
mov dword [esp + 0x14], ebx
jmp 0x41b0d8
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x588]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x584
ret