Function at 0x4b4c80
Capabilities:
Create directory
Create process on windows
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc98
mov eax, dword [0x5073a8]
xor eax, esp
mov dword [esp + 0xc94], eax
push esi
push edi
mov edi, dword [ebp + 8]
push str.BearScreenshotInstall20230401
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4b4ce0
cmp eax, 0xb7
jne 0x4b4ce0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc94]
xor ecx, esp
call fcn.00470058
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea eax, [esp + 0xb94]
mov byte [esp + 0xc], 0
push 0
push eax
call fcn.004722a0
add esp, 0xc
lea eax, [esp + 0xb90]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [esp + 0x984]
push 0
push eax
call fcn.004722a0
add esp, 0xc
lea eax, [esp + 0xb90]
push 0x5f
push eax
call fcn.00486af4
mov esi, eax
add esp, 8
test esi, esi
je 0x4b4d74
lea ecx, [esp + 0x980]
mov edx, 0x104
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4b4d6c
mov al, byte [esi + ecx + 1]
test al, al
je 0x4b4d6c
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4b4d50
jmp 0x4b4d70
test edx, edx
jne 0x4b4d71
dec ecx
mov byte [ecx], 0
lea ecx, [esp + 0x980]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b4d80
sub ecx, edx
cmp ecx, 0xd
jne 0x4b4fd1
mov cl, byte [esp + 0x980]
mov al, 1
cmp cl, 0x30
jl 0x4b4da5
cmp cl, 0x39
jle 0x4b4da7
xor al, al
mov cl, byte [esp + 0x981]
cmp cl, 0x30
jl 0x4b4db8
cmp cl, 0x39
jle 0x4b4dba
xor al, al
mov cl, byte [esp + 0x982]
cmp cl, 0x30
jl 0x4b4dcb
cmp cl, 0x39
jle 0x4b4dcd
xor al, al
mov cl, byte [esp + 0x983]
cmp cl, 0x30
jl 0x4b4dde
cmp cl, 0x39
jle 0x4b4de0
xor al, al
mov cl, byte [esp + 0x984]
cmp cl, 0x30
jl 0x4b4df1
cmp cl, 0x39
jle 0x4b4df3
xor al, al
mov cl, byte [esp + 0x985]
cmp cl, 0x30
jl 0x4b4e04
cmp cl, 0x39
jle 0x4b4e06
xor al, al
mov cl, byte [esp + 0x986]
cmp cl, 0x30
jl 0x4b4e17
cmp cl, 0x39
jle 0x4b4e19
xor al, al
mov cl, byte [esp + 0x987]
cmp cl, 0x30
jl 0x4b4e2a
cmp cl, 0x39
jle 0x4b4e2c
xor al, al
mov cl, byte [esp + 0x988]
cmp cl, 0x30
jl 0x4b4fd1
cmp cl, 0x39
jg 0x4b4fd1
test al, al
je 0x4b4fd1
xor eax, eax
mov dword [esp + 0x950], 0
lea ecx, [esp + 0x950]
mov word [esp + 8], ax
mov dword [esp + 0x958], eax
lea esi, [esp + 0x980]
mov byte [esp + 0x95c], al
lea edx, [eax + 5]
mov byte [esp + 0x954], 0
mov eax, ecx
sub esi, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffff9]
test eax, eax
je 0x4b4eab
mov al, byte [esi + ecx]
test al, al
je 0x4b4eab
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4b4e90
jmp 0x4b4eaf
test edx, edx
jne 0x4b4eb0
dec ecx
mov byte [ecx], 0
lea esi, [esp + 0x984]
lea ecx, [esp + 8]
mov edx, 2
mov eax, ecx
sub esi, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffffc]
test eax, eax
je 0x4b4eeb
mov al, byte [esi + ecx]
test al, al
je 0x4b4eeb
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4b4ed0
jmp 0x4b4eef
test edx, edx
jne 0x4b4ef0
dec ecx
mov byte [ecx], 0
lea esi, [esp + 0x985]
lea ecx, [esp + 0x958]
mov edx, 5
mov eax, ecx
sub esi, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffff9]
test eax, eax
je 0x4b4f2b
mov al, byte [esi + ecx]
test al, al
je 0x4b4f2b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4b4f10
jmp 0x4b4f2f
test edx, edx
jne 0x4b4f30
dec ecx
movups xmm0, xmmword [str.SoftwareBearScreenShot]
push 0
lea eax, [esp + 0x10]
mov byte [ecx], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x97c]
movups xmmword [esp + 0x97c], xmm0
push eax
movq xmm0, qword [0x4e0080]
push SysReAllocStringLen
movq qword [esp + 0x994], xmm0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4b4fcc
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x950]
push 5
push eax
push 1
push 0
push str.ChannelID
push dword [esp + 0x20]
call esi
push 2
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.Plat
push dword [esp + 0x20]
call esi
push 5
lea eax, [esp + 0x95c]
push eax
push 1
push 0
push 0x4e009c
push dword [esp + 0x20]
call esi
mov byte [esp + 8], 1
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4b5305
push 0x104
lea eax, [esp + 0xa8c]
push 0
push eax
call fcn.004722a0
add esp, 0xc
lea eax, [esp + 0xa88]
push 0
push 0x1c
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xa88]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b5020
sub ecx, edx
cmp byte [esp + ecx + 0xa87], 0x5c
je 0x4b5043
cmp ecx, 0x102
jge 0x4b5043
mov byte [esp + ecx + 0xa88], 0x5c
push str.BearScnShot_
lea ecx, [esp + 0xa8c]
call fcn.00401760
cmp byte [esp + 8], 0
je 0x4b514b
lea eax, [esp + 0xa88]
push 0
push eax
call fcn.0047d94f
add esp, 8
cmp eax, 0xffffffff
jne 0x4b5088
push 0
lea eax, [esp + 0xa8c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
call fcn.004b4390
push 0x208
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.004722a0
add esp, 0xc
lea ecx, [esp + 0x58]
call fcn.004b4b50
lea edx, [esp + 0x58]
lea ecx, [esp + 0xa88]
call fcn.004b4500
lea ecx, [esp + 0xa88]
call fcn.004b4090
push 0x104
lea eax, [esp + 0x984]
push 0
push eax
call fcn.004722a0
lea ecx, [esp + 0x98c]
add esp, 0xc
lea esi, [esp + 0xa88]
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4b510f
mov al, byte [esi + ecx]
test al, al
je 0x4b510f
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4b50f4
jmp 0x4b5113
test edx, edx
jne 0x4b5114
dec ecx
mov byte [ecx], 0
lea ecx, [esp + 0x980]
push str.bss.exe
call fcn.00401760
push 5
push 0
push str._install
lea eax, [esp + 0x98c]
push eax
push 0x4e003c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4b52ff
push edi
call dword [0x4e07b0]
add esp, 4
lea eax, [esp + 0x10]
push eax
call dword [0x4e07ac]
add esp, 4
mov ecx, eax
call dword [0x4e0524]
push eax
call dword [0x4e07b4]
add esp, 4
lea ecx, [esp + 0x10]
call dword [0x4e0520]
lea ecx, [esp + 0x58]
call dword [0x4e0510]
lea ecx, [esp + 0x434]
mov dword [esp + 0x58], vtable.DlgOption.4.0
lea esi, [esp + 0xa88]
mov dword [esp + 0x68], vtable.DlgOption.3.0
mov eax, ecx
mov dword [esp + 0x78], vtable.DlgOption.0
mov dword [esp + 0x7c], vtable.DlgOption.2.0
mov edx, 0x104
mov dword [esp + 0x80], vtable.DlgOption.1.0
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4b51eb
mov al, byte [esi + ecx]
test al, al
je 0x4b51eb
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4b51d0
jmp 0x4b51ef
test edx, edx
jne 0x4b51f0
dec ecx
mov byte [ecx], 0
lea edi, [esp + 0x538]
xor eax, eax
mov ecx, 0x82
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x740]
rep stosd dword es:[edi], eax
push 0x468
mov dword [esp + 0x94c], 1
call fcn.00470069
add esp, 4
mov esi, eax
mov ecx, esi
call dword [0x4e06c4]
push 0
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push 0
push 0x96c80000
push str.Setup
mov dword [esi], method.DuiLib::CListUI.virtual_0
lea ecx, [esp + 0x78]
push 0
mov dword [esp + 0x970], esi
call dword [0x4e07a0]
test eax, eax
je 0x4b52ad
lea ecx, [esp + 0x58]
call dword [0x4e07a8]
lea ecx, [esp + 0x58]
call dword [0x4e07a4]
cmp eax, 2
jne 0x4b52ad
lea ecx, [esp + 0x58]
call fcn.004b38e0
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xc94]
xor ecx, esp
call fcn.00470058
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x94c]
mov dword [esp + 0x58], vtable.DlgOption.4.0
mov dword [esp + 0x68], vtable.DlgOption.3.0
mov dword [esp + 0x78], vtable.DlgOption.0
mov dword [esp + 0x7c], vtable.DlgOption.2.0
mov dword [esp + 0x80], vtable.DlgOption.1.0
test ecx, ecx
je 0x4b52ea
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [esp + 0x58]
mov dword [esp + 0x94c], 0
call dword [0x4e0514]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0xc9c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00470058
mov esp, ebp
pop ebp
ret 0x10