Function at 0x4034f0
Capabilities:
Create directory
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa50
mov eax, dword [0x47d348]
xor eax, esp
mov dword [esp + 0xa4c], 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 0x403550
cmp eax, 0xb7
jne 0x403550
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4c]
xor ecx, esp
call fcn.0044df71
mov esp, ebp
pop ebp
ret 0x10
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x403818
push 0x104
lea eax, [esp + 0x94c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x948]
push 0
push 0x26
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x948]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4035a0
sub ecx, edx
cmp byte [esp + ecx + 0x947], 0x5c
je 0x4035c3
cmp ecx, 0x102
jge 0x4035c3
mov byte [esp + ecx + 0x948], 0x5c
push str.BearScreenShot_
lea ecx, [esp + 0x94c]
call fcn.00401d30
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 0x4035e0
sub edx, esi
test edx, edx
jle 0x40369c
mov eax, str._panda
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x403616
test dl, dl
je 0x403612
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x403616
add ecx, 2
add eax, 2
test dl, dl
jne 0x4035f6
xor eax, eax
jmp 0x40361b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40369c
push eax
lea eax, [esp + 0x94c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x403648
push 0
lea eax, [esp + 0x94c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
call fcn.00402670
push 0x208
lea eax, [esp + 0x54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [esp + 0x50]
call fcn.00402030
lea edx, [esp + 0x50]
lea ecx, [esp + 0x948]
call fcn.004023c0
lea ecx, [esp + 0x948]
call fcn.00402bc0
call fcn.004027f0
lea ecx, [esp + 0x948]
call fcn.004030d0
jmp 0x403812
push edi
call dword [0x45b288]
add esp, 4
lea eax, [esp + 8]
push eax
call dword [0x45b284]
add esp, 4
mov ecx, eax
call dword [0x45b250]
push eax
call dword [0x45b28c]
add esp, 4
lea ecx, [esp + 8]
call dword [0x45b24c]
lea ecx, [esp + 0x50]
call dword [0x45b240]
lea ecx, [esp + 0x42c]
mov dword [esp + 0x50], vtable.DlgOption.4.0
lea esi, [esp + 0x948]
mov dword [esp + 0x60], vtable.DlgOption.3.0
mov eax, ecx
mov dword [esp + 0x70], vtable.DlgOption.0
mov dword [esp + 0x74], vtable.DlgOption.2.0
mov edx, 0x104
mov dword [esp + 0x78], vtable.DlgOption.1.0
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40373b
mov al, byte [esi + ecx]
test al, al
je 0x40373b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x403720
jmp 0x40373f
test edx, edx
jne 0x403740
dec ecx
mov byte [ecx], 0
lea edi, [esp + 0x530]
xor eax, eax
mov ecx, 0x82
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x738]
rep stosd dword es:[edi], eax
push 0x468
mov dword [esp + 0x944], 1
call fcn.0044df82
add esp, 4
mov esi, eax
mov ecx, esi
call dword [0x45b268]
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 + 0x70]
push 0
mov dword [esp + 0x968], esi
call dword [0x45b274]
test eax, eax
je 0x403809
push 0x65
lea ecx, [esp + 0x54]
call dword [0x45b280]
lea ecx, [esp + 0x50]
call dword [0x45b27c]
lea ecx, [esp + 0x50]
call dword [0x45b278]
cmp eax, 2
jne 0x403809
lea ecx, [esp + 0x50]
call fcn.004015d0
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xa4c]
xor ecx, esp
call fcn.0044df71
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x50]
call fcn.004015d0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0xa54]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0044df71
mov esp, ebp
pop ebp
ret 0x10