Function at 0x401a50
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401ca0
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x10], 0x32
push ebx
mov dword [ebp - 0x1c], ecx
push esi
push edi
push 0xf8
call sub.MSVCRT40.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebp - 0x18], eax
add esp, 4
mov esi, eax
mov edi, 0
mov dword [ebp - 4], 0
test esi, esi
je 0x401aa3
mov ecx, esi
call fcn.00404c80
mov edi, eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x401ae8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push eax
mov edx, dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 8]
push edx
mov ecx, edi
push eax
call fcn.00404da0
test eax, eax
jne 0x401ae8
test edi, edi
je 0x401ad6
push 1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push 4
push 0x110a
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
je 0x401b91
push esi
mov ecx, ebx
call sub.MFC40.DLL_CTreeCtrl::GetItemData
test eax, eax
je 0x401b56
mov edx, dword [eax + 0x14]
mov ecx, dword [edi + 0x14]
cmp edx, ecx
ja 0x401b70
jne 0x401b56
add eax, 0x8c
lea edx, [edi + 0x8c]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x401b4d
or cl, cl
je 0x401b49
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x401b4d
add eax, 2
add edx, 2
or cl, cl
jne 0x401b2d
xor eax, eax
jmp 0x401b52
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jg 0x401b70
push esi
mov eax, dword [ebx + 0x20]
push 1
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
jne 0x401b0a
jmp 0x401b8d
push esi
mov eax, dword [ebx + 0x20]
push 2
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
jne 0x401b96
mov esi, 0xffff0001
test esi, esi
jne 0x401b96
mov esi, 0xffff0002
cmp dword [ebp + 0x10], 0
jne 0x401bca
push 0
mov eax, dword [ebx + 0x20]
push 0
push 0x1105
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x401bca
push 0
mov eax, dword [ebx + 0x20]
push 0
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
jmp 0x401c08
cmp dword [edi + 4], 0
lea ecx, [edi + 0x8c]
jne 0x401bd8
xor ecx, ecx
push esi
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push ecx
push 1
mov ecx, ebx
call sub.MFC40.DLL_CTreeCtrl::InsertItem
mov esi, eax
push edi
push 0
push 0
push 0
mov ecx, ebx
push 0
push 0
push 4
push esi
call sub.MFC40.DLL_CTreeCtrl::SetItem
mov edi, 1
push 0
push 0
lea eax, [ebp - 0x10]
push 0
lea ecx, [ebp - 0x50]
push 0
mov edx, dword [ebp + 8]
push eax
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401ad6
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x50]
push eax
mov edx, dword [ebp + 8]
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c72
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push eax
lea edx, [ebp - 0x50]
push ecx
mov eax, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x1c]
push esi
push ebx
push eax
call fcn.00401a50
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
push 0
inc edi
push 0
push 0
lea eax, [ebp - 0x10]
push 0
lea edx, [ebp - 0x50]
mov dword [ebp - 0x10], 0x32
push eax
push edx
push ecx
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x401c31
jmp 0x401ad6