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

Disassembly:
mov eax, 0x1017bf0
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x74
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1013b77
xor eax, eax
jmp 0x1013f44
mov eax, dword [ebp - 0x28]
push edi
inc eax
push esi
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatornew
mov edi, eax
mov eax, dword [ebp - 0x18]
pop ecx
mov dword [ebp - 0x24], edi
lea eax, [eax + eax*2 + 0x41]
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov esi, eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], esi
mov ecx, dword [ecx]
lea eax, [eax + eax*2]
add eax, dword [ecx - 8]
mov ecx, dword [ebp - 0x2c]
add eax, dword [ebp - 0x28]
lea eax, [eax + ecx + 0x47]
push eax
call sub.MFC42.DLL_operatornew
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
inc eax
pop ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push edi
push eax
lea eax, [ebp - 0x30]
push ebx
push eax
mov dword [ebp - 0x7c], 0xffff0002
push dword [ebp - 0x14]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x78], 5
mov dword [ebp - 0x34], ebx
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
je 0x1013c1b
cmp eax, 0x103
jne 0x1013e7c
cmp eax, 0x103
je 0x1013d89
mov eax, dword [ebp - 0x44]
cmp eax, ebx
jbe 0x1013d27
cmp eax, 2
jbe 0x1013d24
cmp eax, 3
je 0x1013caf
cmp eax, 4
je 0x1013c97
cmp eax, 5
je 0x1013c78
cmp eax, 7
jne 0x1013d27
mov eax, esi
sub edi, esi
mov cl, byte [eax + edi]
cmp cl, bl
jne 0x1013c67
cmp byte [eax + edi + 1], bl
je 0x1013c71
cmp cl, bl
je 0x1013c6b
mov byte [eax], cl
jmp 0x1013c6e
mov byte [eax], 0x20
inc eax
jmp 0x1013c56
mov byte [eax], bl
jmp 0x1013d33
mov eax, dword [edi]
push eax
shr eax, 0x10
push eax
movzx eax, word [edi]
push eax
push 0x1004b20
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x1013d33
mov edi, dword [edi]
push edi
push edi
push 0x1004b14
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x1013d33
mov eax, dword [ebp - 0x18]
mov edi, esi
mov dword [ebp + 0x14], ebx
lea ecx, [eax + eax*2 + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [ebp - 0x1c], ebx
jbe 0x1013d33
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x38]
push 1
pop eax
sub eax, esi
mov dword [ebp - 0x48], eax
mov al, byte [esi]
cmp al, 0x10
jae 0x1013cf2
lea eax, [edi + 1]
push 0x10
mov byte [edi], 0x30
push eax
movzx eax, byte [esi]
jmp 0x1013cf8
push 0x10
push edi
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__itoa]
mov eax, dword [ebp - 0x48]
add esp, 0xc
add eax, esi
cmp eax, dword [ebp - 0x1c]
jae 0x1013d10
mov byte [edi + 2], 0x20
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
inc esi
add edi, 3
cmp eax, dword [ebp - 0x1c]
jb 0x1013cde
mov esi, dword [ebp - 0x38]
jmp 0x1013d33
push edi
jmp 0x1013d2c
push 0x1004af4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x4c], 1
jne 0x1013d50
mov eax, dword [ebp - 0x14]
cmp byte [eax], bl
jne 0x1013d50
mov eax, dword [ebp + 0xc]
push esi
push dword [eax]
push 0x1004ac8
push dword [ebp - 0x20]
jmp 0x1013d65
mov eax, dword [ebp - 0x14]
push esi
cmp byte [eax], bl
jne 0x1013d70
mov eax, dword [ebp + 0xc]
push dword [eax]
push 0x1004ae0
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x1013d9e
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push 0x1004ad0
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x1013d9e
mov eax, dword [ebp - 0x14]
mov byte [eax], bl
mov eax, dword [ebp + 0xc]
mov byte [esi], bl
push dword [eax]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x20]
push 0x14
mov dword [ebp - 0x68], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp + 0x14], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x1013df2
push esi
lea ecx, [ebp - 0x40]
call fcn.01016118
or dword [ebp - 0x10], 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.01016118
push 2
pop eax
or dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
mov ecx, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0xc]
call fcn.0101242d
mov edi, eax
jmp 0x1013df4
xor edi, edi
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 1
je 0x1013e0d
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString
test byte [ebp - 0x10], 1
mov dword [ebp - 4], ebx
je 0x1013e22
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp + 8]
push ebx
push 0x1100
push dword [eax + 0x20]
mov dword [ebp - 0x54], edi
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push ebx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x34]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, dword [ebp - 0x24]
cmp eax, ebx
je 0x1013c1b
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
pop ecx
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x20]
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x2c]
pop ecx
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
mov eax, dword [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
pop ecx
inc eax
mov dword [ebp + 0xc], ebx
push eax
push edi
push ebx
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x1013f38
lea eax, [ebp - 0x40]
push eax
push 0x20019
push ebx
push edi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1013f27
push edi
lea ecx, [ebp + 0x14]
call fcn.01016118
push dword [ebp - 0x48]
lea eax, [ebp + 0x14]
mov dword [ebp - 4], 3
push dword [ebp - 0x40]
push eax
push dword [ebp + 8]
call fcn.01013b36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x48]
mov eax, dword [ebp + 8]
push 2
push 0x1102
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2c]
inc dword [ebp + 0xc]
inc eax
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
jmp 0x1013ebc
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
push 1
pop eax
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10