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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa04
mov ecx, dword [0x52fe30]
push esi
push edi
xor esi, esi
xor edi, edi
push esi
mov dword [ebp - 4], edi
call fcn.0044ecd0
cmp byte [ebp + 8], 0
jne 0x47888e
test eax, eax
jne 0x478f50
jmp 0x4788a6
test eax, eax
je 0x4788a6
mov ecx, dword [0x52fe30]
inc edi
push edi
call fcn.0044ecd0
test eax, eax
jne 0x478892
mov dword [ebp - 4], edi
push ebx
push 0x206
lea ecx, [ebp - 0x7f6]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x7f8], ax
call fcn.004c9b50
mov eax, dword [0x52fe2c]
push 0x104
lea edx, [ebp - 0x7f8]
push edx
add eax, 0x3be
push eax
call fcn.00406cf0
mov ecx, str.tcc.exe
mov edx, str.nyaos.exe
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x160], ecx
mov ecx, str.__new_console:a
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x130], edx
mov edx, str.cmd.exe
add esp, 0x18
xor eax, eax
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x100], edx
mov dword [ebp - 0xfc], ecx
mov edx, str.powershell.exe
mov dword [ebp - 0xcc], ecx
mov ebx, str.Far_Manager
mov ecx, str.___login__i
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x190], str.far.exe
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], 0x4fd980
mov dword [ebp - 0x174], esi
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], str.TCC__Admin_
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], str.NYAOS
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], str.NYAOS__Admin_
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], 0x4e58fc
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], str.cmd__Admin_
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], str.PowerShell
mov dword [ebp - 0xe8], edx
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], str.PowerShell__Admin_
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], str.CygWin_bash
mov dword [ebp - 0xb8], str.CygWin_bin_sh.exe
mov dword [ebp - 0xb4], ecx
mov edi, str.set_CHERE_INVOKING1_
mov edx, str.Git_bash
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], str.MinGW_bash
mov dword [ebp - 0xa0], str.MinGWmsys1.0_bin_sh.exe
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], str._ProgramFiles_Git_bin_sh.exe
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], str._ProgramW6432_Git_bin_sh.exe
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], str.bash
mov dword [ebp - 0x58], str.sh.exe
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], str.Putty
mov dword [ebp - 0x40], str.Putty.exe
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp + 0xb], al
mov dword [ebp - 8], esi
cmp ebx, esi
je 0x478c96
lea ecx, [ebp - 0x194]
xor ebx, ebx
mov dword [ebp - 0xc], ecx
mov edi, dword [ebp + ebx - 0x190]
lea edx, [ebp + 0xb]
push edx
lea eax, [ebp - 0x7f8]
push eax
lea esi, [ebp - 0x5f0]
call fcn.00477e10
mov edi, dword [ebp - 8]
add esp, 8
test al, al
je 0x478c69
xor esi, esi
test edi, edi
jle 0x478bbb
mov eax, dword [ebp + ebx - 0x180]
test eax, eax
je 0x478bb6
push eax
lea ecx, [ebp - 0x5f0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x478c69
inc esi
cmp esi, edi
jl 0x478b95
lea edx, [ebp - 0x5f0]
push 0
push edx
call fcn.0044c570
add esp, 8
mov dword [ebp + ebx - 0x180], eax
push 0x105
lea eax, [ebp - 0xa04]
lea esi, [ebp - 0x5f0]
push eax
mov ecx, esi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathUnExpandEnvStringsW]
test eax, eax
je 0x478bf8
lea esi, [ebp - 0xa04]
cmp byte [ebp + 0xb], 0
je 0x478c1b
mov edx, dword [ebp + ebx - 0x18c]
mov eax, dword [ebp + ebx - 0x188]
push edx
push 0x4e587c
push esi
push 0x4e587c
push eax
jmp 0x478c30
mov ecx, dword [ebp + ebx - 0x18c]
mov edx, dword [ebp + ebx - 0x188]
push 0
push 0
push ecx
push esi
push edx
call fcn.0044c5d0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x478c69
mov eax, dword [ebp + ebx - 0x184]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ebx, dword [ebp - 4]
mov ecx, dword [0x52fe30]
push esi
push eax
push edx
push ebx
call fcn.004538a0
inc ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0044c4f0
add esp, 4
inc edi
lea ebx, [edi + edi*2]
add ebx, ebx
add ebx, ebx
add ebx, ebx
cmp dword [ebp + ebx - 0x194], 0
lea eax, [ebp + ebx - 0x194]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
jne 0x478b64
mov ebx, dword [ebp - 0x194]
xor esi, esi
call fcn.004c6070
test al, al
je 0x478cc1
mov edi, dword [ebp - 4]
mov ecx, dword [0x52fe30]
push str.___windir__system32cmd.exe___k_ver__echo_This_is_Native_cmd.exe_r_n_r_n__windir__syswow64cmd.exe___k_ver__echo_This_is_32_bit_cmd.exe__new_console:s50V
push 0x4e5034
push str.cmd_64_32
push edi
call fcn.004538a0
inc edi
mov dword [ebp - 4], edi
lea eax, [ebp + 0xb]
push eax
push esi
lea esi, [ebp - 0x5f0]
mov edi, str._ConEmuBaseDir_AddonsAnsiColors16t.ans
call fcn.00477e10
add esp, 8
test al, al
je 0x478cff
mov esi, dword [ebp - 4]
mov ecx, dword [0x52fe30]
push str.cmd__k_type___ConEmuBaseDir_AddonsAnsiColors16t.ans___cur_console:n
push 0x4e5034
push str.Show_ANSI_colors
push esi
call fcn.004538a0
inc esi
mov dword [ebp - 4], esi
push str._ConEmuBaseDir_AddonsChocolateyAbout.cmd
call fcn.004c6380
mov esi, eax
add esp, 4
test esi, esi
je 0x478d4c
push 0
push esi
call fcn.004c5850
add esp, 8
test al, al
je 0x478d43
mov edi, dword [ebp - 4]
mov ecx, dword [0x52fe30]
push str.cmd__k_Title_Chocolatey____ConEmuBaseDir_AddonsChocolateyAbout.cmd_
push 0x4e5034
push str.Chocolatey__Admin_
push edi
call fcn.004538a0
inc edi
mov dword [ebp - 4], edi
push esi
call fcn.0044c4f0
add esp, 4
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftMicrosoft_SDKsWindows
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x478f16
xor edx, edx
push 0x42
push edx
lea eax, [ebp - 0x1d6]
push eax
xor esi, esi
mov word [ebp - 0x1d8], dx
call fcn.004c9b50
mov eax, dword [ebp - 0x10]
add esp, 0xc
push esi
push esi
push esi
push esi
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x1d8]
push edx
push esi
push eax
mov dword [ebp + 8], 0x21
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x478f0c
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x1d8]
push edx
inc esi
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x478edf
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x3e2]
push edx
mov word [ebp - 0x3e4], cx
call fcn.004c9b50
mov edx, dword [ebp - 0xc]
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x3e4]
push ecx
push 0
push 0
push str.InstallationFolder
push edx
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x478ed5
push eax
push eax
push eax
lea eax, [ebp - 0x3e4]
push str.BinSetEnv.Cmd
push eax
call fcn.0044c5d0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x478ed5
push 0
push edi
call fcn.004c5850
add esp, 8
test al, al
je 0x478ec9
push 0
push 0
push 0x4e587c
push edi
push str.cmd__V__K__
call fcn.0044c5d0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x478ec9
lea ecx, [ebp - 0x3e4]
push str.WinSDK
push ecx
call fcn.004128d0
add esp, 8
lea edx, [ebp - 0x1d8]
push edx
push 0x105
lea eax, [ebp - 0x3e4]
push eax
call fcn.004017b0
mov edx, dword [ebp - 4]
push esi
push 0x4e5034
lea ecx, [ebp - 0x3e4]
push ecx
mov ecx, dword [0x52fe30]
push edx
call fcn.004538a0
inc dword [ebp - 4]
push esi
call fcn.0044c4f0
add esp, 4
push edi
call fcn.0044c4f0
mov esi, dword [ebp - 0x14]
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
push 0
push 0
push 0
push 0
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x1d8]
push edx
push esi
push eax
mov dword [ebp + 8], 0x21
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x478db5
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
test ebx, ebx
pop ebx
je 0x478f50
xor eax, eax
nop
lea esi, [ebp + eax - 0x180]
mov eax, dword [esi]
test eax, eax
je 0x478f3c
push eax
call fcn.0044c4f0
add esp, 4
mov dword [esi], 0
inc edi
lea eax, [edi + edi*2]
add eax, eax
add eax, eax
add eax, eax
cmp dword [ebp + eax - 0x194], 0
jne 0x478f20
pop edi
pop esi
mov esp, ebp
pop ebp
ret