Function at 0x4b4dd0
Capabilities:
Create directory
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb98
mov eax, dword [0x5073a8]
xor eax, esp
mov dword [esp + 0xb94], 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 0x4b4e30
cmp eax, 0xb7
jne 0x4b4e30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xb94]
xor ecx, esp
call fcn.0047012d
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea eax, [esp + 0xa94]
mov byte [esp + 0xc], 0
push 0
push eax
call fcn.00472380
add esp, 0xc
lea eax, [esp + 0xa90]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.00472380
add esp, 0xc
lea eax, [esp + 0xa90]
push 0x5f
push eax
call fcn.00486be4
mov esi, eax
add esp, 8
test esi, esi
je 0x4b4ec4
lea ecx, [esp + 0x58]
mov edx, 0x104
mov eax, ecx
sub esi, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4b4ebc
mov al, byte [esi + ecx + 1]
test al, al
je 0x4b4ebc
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4b4ea0
jmp 0x4b4ec0
test edx, edx
jne 0x4b4ec1
dec ecx
mov byte [ecx], 0
lea ecx, [esp + 0x58]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b4ed0
sub ecx, edx
cmp ecx, 0xd
jb 0x4b5051
mov byte [esp + 0x954], al
lea ecx, [esp + 0x950]
xor eax, eax
mov dword [esp + 0x950], 0
mov word [esp + 8], ax
lea esi, [esp + 0x58]
mov dword [esp + 0x958], eax
mov byte [esp + 0x95c], al
lea edx, [eax + 5]
mov eax, ecx
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffff9]
test eax, eax
je 0x4b4f3b
mov al, byte [esi + ecx]
test al, al
je 0x4b4f3b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4b4f20
jmp 0x4b4f3f
test edx, edx
jne 0x4b4f40
dec ecx
mov byte [ecx], 0
lea esi, [esp + 0x5c]
lea ecx, [esp + 8]
mov edx, 2
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffffc]
test eax, eax
je 0x4b4f6f
mov al, byte [esi + ecx]
test al, al
je 0x4b4f6f
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4b4f54
jmp 0x4b4f73
test edx, edx
jne 0x4b4f74
dec ecx
mov byte [ecx], 0
lea esi, [esp + 0x5d]
lea ecx, [esp + 0x958]
mov edx, 5
mov eax, ecx
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffff9]
test eax, eax
je 0x4b4fab
mov al, byte [esi + ecx]
test al, al
je 0x4b4fab
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4b4f90
jmp 0x4b4faf
test edx, edx
jne 0x4b4fb0
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 [0x4e00b8]
push SysReAllocStringLen
movq qword [esp + 0x994], xmm0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4b504c
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 0x4e00d4
push dword [esp + 0x20]
call esi
mov byte [esp + 8], 1
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4b5318
push 0x104
lea eax, [esp + 0x98c]
push 0
push eax
call fcn.00472380
add esp, 0xc
lea eax, [esp + 0x988]
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 + 0x988]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b50a0
sub ecx, edx
cmp byte [esp + ecx + 0x987], 0x5c
je 0x4b50c3
cmp ecx, 0x102
jge 0x4b50c3
mov byte [esp + ecx + 0x988], 0x5c
push str.BearScnShot_
lea ecx, [esp + 0x98c]
call fcn.004017c0
mov ecx, dword [ebp + 0x10]
mov edx, ecx
lea esi, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4b50e0
sub edx, esi
test edx, edx
jle 0x4b511b
mov eax, str._panda
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4b5112
test dl, dl
je 0x4b510e
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4b5112
add ecx, 2
add eax, 2
test dl, dl
jne 0x4b50f2
xor eax, eax
jmp 0x4b5117
sbb eax, eax
or eax, 1
test eax, eax
je 0x4b5122
cmp byte [esp + 8], 0
je 0x4b519c
lea eax, [esp + 0x988]
push 0
push eax
call fcn.0047da3f
add esp, 8
cmp eax, 0xffffffff
jne 0x4b514b
push 0
lea eax, [esp + 0x98c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
call fcn.004b44f0
push 0x208
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.00472380
add esp, 0xc
lea ecx, [esp + 0x58]
call fcn.004b4ca0
lea edx, [esp + 0x58]
lea ecx, [esp + 0x988]
call fcn.004b4660
lea ecx, [esp + 0x988]
call fcn.004b41f0
mov dl, 1
lea ecx, [esp + 0x988]
call fcn.004b3eb0
jmp 0x4b5312
push edi
call dword [0x4e07f4]
add esp, 4
lea eax, [esp + 0x10]
push eax
call dword [0x4e07f0]
add esp, 4
mov ecx, eax
call dword [0x4e0564]
push eax
call dword [0x4e07f8]
add esp, 4
lea ecx, [esp + 0x10]
call dword [0x4e0560]
lea ecx, [esp + 0x58]
call dword [0x4e0550]
lea ecx, [esp + 0x434]
mov dword [esp + 0x58], vtable.DlgOption.4.0
lea esi, [esp + 0x988]
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]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4b523b
mov al, byte [ecx + esi]
test al, al
je 0x4b523b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4b5220
jmp 0x4b523f
test edx, edx
jne 0x4b5240
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.0047013e
add esp, 4
mov esi, eax
mov ecx, esi
call dword [0x4e0704]
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 [0x4e07e0]
test eax, eax
je 0x4b5309
push 0x65
lea ecx, [esp + 0x5c]
call dword [0x4e07ec]
lea ecx, [esp + 0x58]
call dword [0x4e07e8]
lea ecx, [esp + 0x58]
call dword [0x4e07e4]
cmp eax, 2
jne 0x4b5309
lea ecx, [esp + 0x58]
call fcn.004b39e0
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xb94]
xor ecx, esp
call fcn.0047012d
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x58]
call fcn.004b39e0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0xb9c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0047012d
mov esp, ebp
pop ebp
ret 0x10