Function at 0x401880
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40382b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
xor esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
call sub.MFC42.DLL_CString::CString
mov ebp, dword [edi + 0xe0]
add edi, 0xcc
cmp ebp, esi
mov byte [esp + 0x38], 1
mov dword [esp + 0x1c], edi
jl 0x4018ee
mov eax, dword [edi + 4]
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x4018e9
mov ecx, ebx
call fcn.00401b10
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
inc esi
cmp esi, ebp
jle 0x4018cf
or esi, 0xffffffff
mov ecx, edi
push esi
push 0
call sub.MFC42.DLL_CPtrArray::SetSize
lea ecx, [esp + 0x24]
mov dword [edi + 0x14], esi
push ecx
push 0xf003f
push 0
push 0x40606c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401935
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.00403198
mov dword [esp + 0x38], esi
jmp 0x401ae5
mov esi, 1
mov dword [esp + 0x20], esi
push esi
lea edx, [esp + 0x18]
push 0x406060
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x104
call sub.MFC42.DLL_CString::GetBufferSetLength
lea ecx, [esp + 0x28]
lea edx, [esp + 0x2c]
push ecx
push eax
push edx
push 0
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0x104
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov ebx, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
xor ebp, ebp
cmp ebx, ebp
jne 0x401a8a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebp
je 0x401a77
push 8
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
cmp ebx, ebp
mov byte [esp + 0x38], 2
je 0x4019f6
mov edx, dword [esp + 0x10]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [ebx + 4], ebp
jmp 0x4019f8
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov ebp, dword [edi + 0x14]
test ebp, ebp
mov byte [esp + 0x38], 1
jl 0x401a5b
jmp 0x401a0e
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 4]
lea esi, [eax + ebp]
mov eax, dword [ebx]
sar esi, 1
push eax
mov edi, dword [ecx + esi*4]
mov ecx, dword [edi]
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jge 0x401a37
inc esi
mov dword [esp + 0x18], esi
jmp 0x401a4d
mov eax, dword [ebx]
mov edi, dword [edi]
push eax
push edi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jle 0x401a6f
lea ebp, [esi - 1]
cmp dword [esp + 0x18], ebp
jle 0x401a0a
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 1
push ebx
push edx
mov ecx, edi
call sub.MFC42.DLL_CPtrArray::InsertAt
inc dword [edi + 0x14]
jmp 0x401a77
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
inc esi
cmp esi, 0x3e8
mov dword [esp + 0x20], esi
jle 0x40193e
jmp 0x401ac4
cmp esi, 0x3e8
jg 0x401ac4
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
lea eax, [esp + 0x18]
push 0x406060
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
add esp, 0xc
push ecx
push edx
call edi
test eax, eax
jne 0x401ac4
inc esi
cmp esi, 0x3e8
jle 0x401a98
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.00403198
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00403198
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret