Function at 0x4c8fb0
Capabilities:
Get common file path
Get installed programs
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x448
test eax, eax
je 0x4c9720
push ebx
push esi
xor ecx, ecx
push edi
lea esi, [eax + 0x21c]
lea edi, [eax + 0x424]
xor edx, edx
mov dword [ebp - 8], esi
mov word [esi], cx
mov dword [ebp - 4], edi
mov word [edi], dx
cmp dword [eax], ecx
jne 0x4c953f
call fcn.004c6070
push 0x105
lea ecx, [ebp - 0x23c]
movzx eax, al
push ecx
push str._ConEmuBaseDir__tcc.exe
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4c904a
cmp eax, 0x105
jae 0x4c904a
lea edx, [ebp - 0x23c]
push 0
push edx
call fcn.004c5850
add esp, 8
test al, al
je 0x4c904a
lea eax, [ebp - 0x23c]
push eax
push esi
call fcn.00405470
lea ecx, [ebp - 0x23c]
push ecx
push edi
call fcn.00405470
add esp, 0x10
cmp word [esi], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
je 0x4c9060
cmp word [edi], 0
jne 0x4c9296
xor edi, edi
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4c9073
cmp dword [ebp - 0x1c], 0
je 0x4c9258
mov eax, dword [ebp - 0x1c]
mov byte [ebp + 0xb], 0
test edi, edi
jne 0x4c9089
neg eax
sbb eax, eax
and eax, 0x200
jmp 0x4c9092
neg eax
sbb eax, eax
and eax, 0x100
mov esi, eax
lea edx, [ebp - 0xc]
push edx
or esi, 0x20019
push esi
push 0
push str.SOFTWAREJP_Software
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], esi
call ebx
test eax, eax
jne 0x4c9255
mov dword [ebp - 0x10], eax
jmp 0x4c90c0
mov edx, dword [ebp - 0x10]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x448]
push ecx
push edx
push eax
mov dword [ebp - 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4c924b
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x448]
push edx
push eax
call ebx
test eax, eax
jne 0x4c923e
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], str.Path
jmp 0x4c9120
push 0x20a
lea ecx, [ebp - 0x23c]
push 0
push ecx
call fcn.004c9b50
mov ecx, dword [ebp + ebx*4 - 0x30]
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x23c]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x24], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c921e
mov ax, word [ebp - 0x23c]
test ax, ax
je 0x4c921e
cmp ax, 0x22
je 0x4c9181
lea esi, [ebp - 0x23c]
jmp 0x4c91b2
lea eax, [ebp - 0x23a]
push 0x22
push eax
call fcn.004c9bca
add esp, 8
test eax, eax
jne 0x4c91a7
xor ecx, ecx
mov word [ebp - 0x23c], cx
lea esi, [ebp - 0x23c]
jmp 0x4c91b2
xor edx, edx
mov word [eax], dx
lea esi, [ebp - 0x23a]
push 0x5c
push esi
call fcn.004ca94c
mov edi, eax
add esp, 8
test edi, edi
je 0x4c921e
push str._tcmd.exe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4c921e
push eax
push esi
call fcn.004c5850
add esp, 8
test al, al
je 0x4c921e
push 8
push str.tcc.exe
add edi, 2
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
push esi
call fcn.004c5850
add esp, 8
test al, al
je 0x4c921e
cmp dword [ebp - 0x14], 0
mov byte [ebp + 0xb], 1
push esi
jne 0x4c9212
mov eax, dword [ebp - 8]
push eax
jmp 0x4c9216
mov ecx, dword [ebp - 4]
push ecx
call fcn.00405470
add esp, 8
inc ebx
cmp ebx, 2
jb 0x4c9120
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
inc dword [ebp - 0x10]
cmp byte [ebp + 0xb], 0
je 0x4c90c0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 8]
inc edi
cmp edi, 1
mov dword [ebp - 0x14], edi
jle 0x4c9065
movzx eax, word [esi]
test ax, ax
je 0x4c927c
mov ecx, dword [ebp - 4]
cmp word [ecx], 0
jne 0x4c927c
push esi
mov edx, ecx
push edx
jmp 0x4c928e
mov ecx, dword [ebp - 4]
cmp word [ecx], 0
je 0x4c9296
test ax, ax
jne 0x4c9296
mov edx, ecx
push edx
push esi
call fcn.00405470
add esp, 8
cmp word [esi], 0
je 0x4c92a9
mov eax, dword [ebp - 4]
cmp word [eax], 0
jne 0x4c94cb
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 8]
xor esi, esi
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4c92e3
test ecx, ecx
je 0x4c94bc
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test ax, ax
jne 0x4c94bc
mov byte [ebp + 0xb], al
mov eax, ecx
test esi, esi
jne 0x4c92e8
neg eax
sbb eax, eax
and eax, 0x200
jmp 0x4c92f1
movzx eax, word [edi]
jmp 0x4c92c6
neg eax
sbb eax, eax
and eax, 0x100
mov edi, eax
lea eax, [ebp - 0xc]
push eax
or edi, 0x20019
push edi
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x4c94b6
xor ebx, ebx
mov eax, dword [ebp - 0xc]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x448]
push edx
push ebx
push eax
mov dword [ebp - 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4c94a3
cmp word [ebp - 0x448], 0x7b
jne 0x4c9498
lea ecx, [ebp - 0x10]
push ecx
push edi
push eax
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x448]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c9498
push 0x20a
push eax
lea ecx, [ebp - 0x23c]
push ecx
call fcn.004c9b50
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x23c]
push eax
push 0
push 0
push str.Publisher
push ecx
mov dword [ebp - 0x14], 0x208
call esi
test eax, eax
jne 0x4c948e
push str.JP_Software
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4c948e
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x23c]
push ecx
push 0
push 0
push str.InstallLocation
push edx
mov dword [ebp - 0x14], 0x1f2
call esi
test eax, eax
jne 0x4c948e
mov ax, word [ebp - 0x23c]
test ax, ax
je 0x4c948e
cmp ax, 0x22
jne 0x4c942b
lea esi, [ebp - 0x23a]
mov eax, esi
push 0x22
push eax
call fcn.004c9bca
add esp, 8
test eax, eax
je 0x4c9431
xor ecx, ecx
mov word [eax], cx
jmp 0x4c9431
lea esi, [ebp - 0x23c]
cmp word [esi], 0
je 0x4c948e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
lea eax, [esi + eax*2]
je 0x4c9454
mov edx, 0x5c
mov word [eax], dx
add eax, 2
push 8
push str.tcc.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
push esi
call fcn.004c5850
add esp, 8
test al, al
je 0x4c948e
cmp dword [ebp - 0x18], 0
mov byte [ebp + 0xb], 1
push esi
jne 0x4c9482
mov eax, dword [ebp - 8]
push eax
jmp 0x4c9486
mov ecx, dword [ebp - 4]
push ecx
call fcn.00405470
add esp, 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp byte [ebp + 0xb], 0
je 0x4c9316
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
inc esi
cmp esi, 1
mov dword [ebp - 0x18], esi
jle 0x4c92b4
jmp 0x4c94ce
mov edi, dword [ebp - 8]
cmp word [edi], 0
mov esi, dword [ebp - 4]
jne 0x4c9518
cmp word [esi], 0
jne 0x4c9518
push 0
push str.C:Program_FilesJPSoftTCMD13_tcc.exe
call fcn.004c5850
add esp, 8
test al, al
je 0x4c94f7
push str.C:Program_FilesJPSoftTCMD13_tcc.exe
jmp 0x4c950f
push 0
push str.C:Program_FilesJPSoftTCCLE13_tcc.exe
call fcn.004c5850
add esp, 8
test al, al
je 0x4c9518
push str.C:Program_FilesJPSoftTCCLE13_tcc.exe
push edi
call fcn.00405470
add esp, 8
movzx eax, word [edi]
test ax, ax
je 0x4c952a
cmp word [esi], 0
jne 0x4c9530
push edi
push esi
jmp 0x4c9537
cmp word [esi], 0
je 0x4c953f
test ax, ax
jne 0x4c953f
push esi
push edi
call fcn.00405470
add esp, 8
mov ebx, dword [ebp - 8]
cmp word [ebx], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jne 0x4c963c
test ebx, ebx
je 0x4c963c
xor ecx, ecx
mov word [ebx], cx
call fcn.004c6070
cmp word [ebx], 0
movzx esi, al
jne 0x4c95bc
push pe_nt_image_headers32
push ebx
call edi
test eax, eax
jle 0x4c95b6
cmp eax, 0xf0
jae 0x4c95b6
test esi, esi
je 0x4c9598
cmp word [ebx + eax*2 - 2], 0x5c
mov eax, str.SysWOW64cmd.exe
je 0x4c95aa
mov eax, 0x507fc4
jmp 0x4c95aa
cmp word [ebx + eax*2 - 2], 0x5c
mov eax, str.System32cmd.exe
je 0x4c95aa
mov eax, 0x507f7c
push eax
push 0x104
push ebx
call fcn.004017b0
cmp word [ebx], 0
je 0x4c95d8
push 0
push ebx
call fcn.004c5850
add esp, 8
test al, al
jne 0x4c95d2
xor edx, edx
mov word [ebx], dx
jmp 0x4c95d8
cmp word [ebx], 0
jne 0x4c963c
lea eax, [ebp + 8]
push eax
push ebx
push 0x104
push 0
push str.cmd.exe
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4c95fc
cmp eax, 0x104
jb 0x4c963c
mov esi, str.cmd.exe
mov edx, 0x104
mov eax, ebx
sub esi, ebx
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4c9630
movzx ecx, word [eax + esi]
test cx, cx
je 0x4c9630
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4c9610
jmp 0x4c9634
test edx, edx
jne 0x4c9637
sub eax, 2
xor edx, edx
mov word [eax], dx
mov ebx, dword [ebp - 4]
cmp word [ebx], 0
jne 0x4c971d
test ebx, ebx
je 0x4c971d
xor eax, eax
mov word [ebx], ax
call fcn.004c6070
cmp word [ebx], 0
jne 0x4c9698
push pe_nt_image_headers32
push ebx
call edi
test eax, eax
jle 0x4c9692
cmp eax, 0xf0
jae 0x4c9692
cmp word [ebx + eax*2 - 2], 0x5c
mov eax, str.System32cmd.exe
je 0x4c9686
mov eax, 0x507f7c
push eax
push 0x104
push ebx
call fcn.004017b0
cmp word [ebx], 0
je 0x4c96b4
push 0
push ebx
call fcn.004c5850
add esp, 8
test al, al
jne 0x4c96ae
xor ecx, ecx
mov word [ebx], cx
jmp 0x4c96b4
cmp word [ebx], 0
jne 0x4c971d
lea edx, [ebp + 8]
push edx
push ebx
push 0x104
push 0
push str.cmd.exe
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4c96d8
cmp eax, 0x104
jb 0x4c971d
mov esi, str.cmd.exe
mov edx, 0x104
mov eax, ebx
sub esi, ebx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4c9711
movzx ecx, word [eax + esi]
test cx, cx
je 0x4c9711
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4c96e6
pop edi
sub eax, 2
pop esi
mov word [eax], dx
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jne 0x4c9718
sub eax, 2
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret