Function at 0x1400075a0
Capabilities:
Check if file exists
Set current directory

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x918
mov rax, qword [0x14001f010]
xor rax, rsp
mov qword [rsp + 0x900], rax
mov r8d, 0x104
lea rdx, [rsp + 0x6f0]
mov rcx, qword [rsp + 0x920]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140007613
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.GetModuleFileName_failed_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x643
jmp 0x1400079ba
xor edx, edx
mov eax, 0x208
mov ecx, 2
div rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x58], 0
je 0x140007642
cmp qword [rsp + 0x58], 0x7fffffff
jbe 0x14000764a
mov dword [rsp + 0x30], 0x80070057
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x140007683
mov qword [rsp + 0x20], 0x7ffffffe
lea r9, [rsp + 0x6f0]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x2d0]
call fcn.140006120
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edx, edx
mov eax, 0x208
mov ecx, 2
div rcx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x38], 0
cmp qword [rsp + 0x60], 0
je 0x1400076c0
cmp qword [rsp + 0x60], 0x7fffffff
jbe 0x1400076c8
mov dword [rsp + 0x38], 0x80070057
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jl 0x140007701
mov qword [rsp + 0x20], 0x7ffffffe
lea r9, [rsp + 0x2d0]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x4e0]
call fcn.140006120
mov dword [rsp + 0x3c], eax
xor edx, edx
mov eax, 0x208
mov ecx, 2
div rcx
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0x68], 0
je 0x140007730
cmp qword [rsp + 0x68], 0x7fffffff
jbe 0x140007738
mov dword [rsp + 0x40], 0x80070057
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140007771
mov qword [rsp + 0x20], 0x7ffffffe
lea r9, [rsp + 0x2d0]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0xc0]
call fcn.140006120
mov dword [rsp + 0x44], eax
lea rdx, str.SetupUi.dll
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000786e
xor edx, edx
mov eax, 0x208
mov ecx, 2
div rcx
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x70], 0
je 0x1400077cb
cmp qword [rsp + 0x70], 0x7fffffff
jbe 0x1400077d3
mov dword [rsp + 0x48], 0x80070057
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jl 0x14000780c
mov qword [rsp + 0x20], 0x7ffffffe
lea r9, [rsp + 0x2d0]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xc0]
call fcn.140006120
mov dword [rsp + 0x4c], eax
lea rdx, str.SetupSetupUi.dll
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140007859
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Cant_find_setupUi.dll_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x643
jmp 0x1400079ba
lea rdx, str.Setup
lea rcx, [rsp + 0x4e0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x54], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [rsp + 0x78], 8
mov dword [rsp + 0x7c], 0x2ff
lea rcx, [rsp + 0x78]
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov dword [rsp + 0x90], eax
xor r9d, r9d
mov r8, qword [rsp + 0x920]
xor edx, edx
lea rcx, [0x14001fbb0]
call fcn.1400032d0
mov dword [rsp + 0x54], eax
mov dword [rsp + 0xa0], 1
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb0], 0
mov dword [rsp + 0xb4], 0
xor r8d, r8d
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x98]
call sub.gdiplus.dll_GdiplusStartup
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x50], 0x643
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x140007997
lea rdx, str._Run
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140007997
mov rdx, qword [rsp + 0x930]
lea rcx, [rsp + 0x6f0]
call qword [rsp + 0x88]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x98]
call sub.gdiplus.dll_GdiplusShutdown
lea rcx, [0x14001fbb0]
call fcn.140006210
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x900]
xor rcx, rsp
call fcn.1400084e0
add rsp, 0x918
ret