Function at 0x140036910
Capabilities:
Check mutex on windows
Query environment variable

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x208]
sub rsp, 0x300
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1400b52a0]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
lea rdi, [0x1400b9cc0]
mov qword [rsp + 0x40], rdi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.BCGCBPRO2500u140X64.dll_public:_void___cdecl_CBCGPWinApp::constructor_int____ptr64]
nop
lea rax, vtable.CFormatFactoryApp.1.0
mov qword [0x1400b9cc0], rax
lea rax, vtable.CFormatFactoryApp.0
mov qword [0x1400b9e38], rax
lea rax, [0x1400ba1a8]
mov qword [0x1400ba1b8], rax
mov qword [0x1400ba1b0], rax
mov qword [0x1400ba1a8], rax
xor ebx, ebx
mov dword [0x1400ba1c0], ebx
mov dword [0x1400ba1c4], 0xffffffff
mov qword [0x1400ba1c8], rbx
lea rcx, [0x1400ba1e8]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
nop
lea rcx, [0x1400ba1f0]
call qword [sym.imp.FFUILib.dll_public:_void___cdecl_CShellBrowser::constructor_void____ptr64]
nop
lea rcx, [0x1400ba4c0]
call qword [sym.imp.mfc140u.dll_CHandleMap::CHandleMap]
nop
lea rcx, [0x1400ba4d0]
call qword [sym.imp.BCGCBPRO2500u140X64.dll_public:_void___cdecl_CBCGPToolBarImages::constructor_void____ptr64]
nop
lea rcx, [0x1400ba670]
call qword [sym.imp.mfc140u.dll_CHandleMap::CHandleMap]
nop
lea rcx, [0x1400ba680]
call qword [sym.imp.mfc140u.dll_CHandleMap::CHandleMap]
nop
lea rcx, [0x1400ba690]
call qword [sym.imp.mfc140u.dll_CHandleMap::CHandleMap]
nop
lea rcx, [0x1400ba6b8]
call fcn.140026270
nop
mov qword [0x1400bc470], rbx
lea rcx, [0x1400bc488]
call qword [sym.imp.FTCore.dll_public:_void___cdecl_CFTQuery::constructor_void____ptr64]
nop
lea rdx, str.FreeTimeFormatFactory
mov rcx, qword [sym.imp.FTCore.dll_class_CCfg_theCfg]
call fcn.1400583a0
mov dword [0x1400ba6b0], 0xffffffff
mov dword [0x1400b9e80], ebx
lea r8, [0x140075bf0]
lea edx, [rbx + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1400ba1e0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete byte [0x1400ba1de]
lea rcx, [0x1400ba6b0]
call qword [sym.imp.FFUILib.dll_void___cdecl_SetSkinVar_unsigned_int____ptr64_]
mov qword [0x1400b9d00], rbx
mov qword [0x1400bc478], rbx
mov byte [0x1400ba1dd], bl
mov dword [rsp + 0x70], WSAStartup
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
lea ecx, [rbx + 0x2d]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [rbp - 0x80]
cdq
xor eax, edx
sub eax, edx
mov dword [0x1400ba1d4], eax
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.14004fbb0
or r8d, 0xffffffff
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
mov rdx, rax
lea rcx, [0x1400ba1e8]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rdx, [0x140082538]
lea rcx, [rsp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea rdx, [0x14008253c]
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea r9d, [rbx + 1]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [0x1400ba1e8]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::replace_class_QString_const____ptr64__class_QString_const____ptr64__enum_Qt::CaseSensitivity____ptr64]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea rdx, [0x140082548]
lea rcx, [rsp + 0x28]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_char_const____ptr64____ptr64]
lea rdx, [0x1400ba1e8]
lea rcx, [rsp + 0x28]
call qword [reloc.Qt5Core.dll___YQString__QEAAAEAV0_AEBV0__Z]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_QString::toStdString_void____ptr64]
nop
cmp qword [rax + 0x18], 0x10
jb 0x140036bb9
mov rax, qword [rax]
or r8d, 0xffffffff
mov rdx, rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::constructor_char_const____ptr64__int____ptr64]
nop
lea rdx, [rsp + 0x20]
lea rcx, str.PATH
call qword [sym.imp.Qt5Core.dll_bool___cdecl_qputenv_char_const____ptr64__class_QByteArray_const____ptr64_]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
nop
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x140036c48
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x140036c42
test cl, 0x1f
je 0x140036c12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140036c22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140036c32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140036c3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005b9e4
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
mov rax, rdi
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14005b9c0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret