Function at 0x2f388e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2f38be5
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x390
lea eax, [ebp - 0x194]
push ebx
push esi
push edi
mov ebx, dword [ecx + 0x84]
add ebx, 4
push 0x104
push eax
mov edi, 0x2f58690
call sub.MFC42.DLL_AfxGetModuleState
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [ebp - 0x194]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 2
mov eax, dword [ebx + 4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x2f38aec
mov esi, str.winhlp32__p__n_d_hcw
mov ecx, dword [ebp - 0x18]
push 5
mov edx, dword [ecx]
mov edi, dword [ecx + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [edi]
push ecx
mov ecx, edi
mov ebx, dword [eax + 0x6c]
call ebx
test eax, eax
je 0x2f38ae2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x2f38ae2
push 6
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call ebx
test eax, eax
jne 0x2f389d1
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.02f38bf7
test eax, eax
je 0x2f38ae2
push str.command
lea ecx, [ebp - 0x39c]
push dword [ebp - 0x10]
push str._s_shellopen_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x194]
lea edx, [ebp - 0x39c]
push ecx
push edx
call fcn.02f38bf7
test eax, eax
je 0x2f38ae2
push str.command
lea ecx, [ebp - 0x39c]
push dword [ebp - 0x10]
push str._s_shellWhats_This__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [edi + 0x40]
cmp eax, 2
je 0x2f38a58
cmp eax, 3
je 0x2f38a5c
cmp eax, 4
je 0x2f38a60
cmp eax, 7
je 0x2f38ae2
push 3
jmp 0x2f38a62
push 1
jmp 0x2f38a62
push 3
jmp 0x2f38a62
push 2
push esi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x39c]
push eax
push ecx
call fcn.02f38bf7
test eax, eax
je 0x2f38ae2
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call ebx
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], 0
je 0x2f38ae2
mov dword [ebp - 0x20], 0x208
mov eax, dword [edi + 0x40]
cmp eax, 2
je 0x2f38ad7
cmp eax, 4
je 0x2f38ad7
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x39c]
push eax
push ecx
push dword [ebp - 0x14]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2f38ad7
cmp byte [ebp - 0x39c], 0
jne 0x2f38ae2
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.02f38bf7
cmp dword [ebp - 0x18], 0
jne 0x2f38988
mov ebx, 0x104
lea eax, [ebp - 0x194]
push ebx
mov edi, 0x2f24d40
push eax
call sub.MFC42.DLL_AfxGetModuleState
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [ebp - 0x194]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x194]
push eax
push 0x2f24d28
call fcn.02f38bf7
push ebx
lea ecx, [ebp - 0x194]
push ecx
mov edi, 0x2f24d24
call sub.MFC42.DLL_AfxGetModuleState
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [ebp - 0x194]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x194]
push eax
push 0x2f24d0c
call fcn.02f38bf7
mov byte [ebp - 4], 1
call fcn.02f38bd5
mov byte [ebp - 4], 0
call fcn.02f38bdd
mov dword [ebp - 4], 0xffffffff
call fcn.02f38bef
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret