Function at 0x401c30
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401e80
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 edi, eax
mov esi, 0
mov dword [ebp - 4], 0
test edi, edi
je 0x401c83
mov ecx, edi
call fcn.00404e60
mov esi, eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x401cc8
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, esi
push eax
call fcn.00404f80
test eax, eax
jne 0x401cc8
test esi, esi
je 0x401cb6
push 1
mov eax, dword [esi]
mov ecx, esi
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 edi, eax
test edi, edi
je 0x401d71
push edi
mov ecx, ebx
call sub.MFC40.DLL_CTreeCtrl::GetItemData
test eax, eax
je 0x401d36
mov edx, dword [esi + 0x14]
mov ecx, dword [eax + 0x14]
cmp edx, ecx
jb 0x401d50
jne 0x401d36
add eax, 0x8c
lea edx, [esi + 0x8c]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x401d2d
or cl, cl
je 0x401d29
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x401d2d
add eax, 2
add edx, 2
or cl, cl
jne 0x401d0d
xor eax, eax
jmp 0x401d32
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jg 0x401d50
push edi
mov eax, dword [ebx + 0x20]
push 1
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
jne 0x401cea
jmp 0x401d6d
push edi
mov eax, dword [ebx + 0x20]
push 2
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
jne 0x401d76
mov edi, 0xffff0001
test edi, edi
jne 0x401d76
mov edi, 0xffff0002
cmp dword [ebp + 0x10], 0
jne 0x401daa
push 0
mov eax, dword [ebx + 0x20]
push 0
push 0x1105
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x401daa
push 0
mov eax, dword [ebx + 0x20]
push 0
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
jmp 0x401de8
cmp dword [esi + 4], 0
lea ecx, [esi + 0x8c]
jne 0x401db8
xor ecx, ecx
push edi
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 edi, eax
push esi
push 0
push 0
push 0
mov ecx, ebx
push 0
push 0
push 4
push edi
call sub.MFC40.DLL_CTreeCtrl::SetItem
mov esi, 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 0x401cb6
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 0x401e52
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 edi
push ebx
push eax
call fcn.00401c30
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
push 0
inc esi
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 0x401e11
jmp 0x401cb6