Function at 0x1601b84d4
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x160270bd8]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x148], rcx
mov qword [rsp + 0x150], rdx
mov rsi, qword [rsp + 0x4c8]
mov qword [rsp + 0x160], rsi
mov rax, qword [rsp + 0x4d0]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x4d8]
mov qword [rsp + 0x140], rax
mov r12, qword [rsp + 0x518]
mov qword [rsp + 0x170], r12
xor ebx, ebx
mov r13d, ebx
mov qword [rsp + 0x120], rbx
mov r14d, ebx
mov dword [rsp + 0xd0], ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x250]
call sub.msvcrt.dll_memset
mov qword [rsp + 0x108], rbx
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0xf0], rbx
xor edx, edx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x178]
call sub.msvcrt.dll_memset
mov dword [rsp + 0xe4], ebx
mov qword [rsp + 0xc0], rbx
xor edx, edx
lea r8d, [rbx + 0x70]
lea rcx, [rsp + 0x1e0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0xc8], ebx
xor edx, edx
lea r8d, [rbx + 0x28]
lea rcx, [rsp + 0x1b0]
call sub.msvcrt.dll_memset
call fcn.1601b9024
mov r15d, eax
mov qword [r12], rbx
mov qword [r12 + 8], rbx
cmp qword [0x160274dc8], rbx
je 0x1601b8619
test eax, eax
je 0x1601b8630
lea r8, [rsp + 0xc0]
call fcn.1601b8be0
mov edi, eax
test eax, eax
jne 0x1601b87f8
cmp qword [0x160274dc8], rbx
jne 0x1601b8669
test r15d, r15d
jne 0x1601b8669
mov rcx, qword [rsp + 0xc0]
xor eax, eax
lock cmpxchg qword [0x160274dc8], rcx
je 0x1601b8661
lea rcx, [rsp + 0xc0]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov qword [rsp + 0xc0], rbx
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x178], rax
mov eax, dword [rsi + 0x20]
mov dword [rsp + 0x180], eax
mov eax, dword [rsi + 0x24]
mov dword [rsp + 0x184], eax
mov eax, dword [rsi + 0x28]
mov dword [rsp + 0x188], eax
mov eax, dword [rsi + 0x2c]
mov dword [rsp + 0x18c], eax
mov eax, dword [rsi + 0x30]
mov dword [rsp + 0x190], eax
mov eax, dword [rsi + 0x34]
mov dword [rsp + 0x194], eax
mov eax, dword [rsi + 0x38]
mov dword [rsp + 0x198], eax
mov ecx, dword [rsi + 0x3c]
mov dword [rsp + 0x19c], ecx
movzx eax, word [rsi + 0x40]
mov word [rsp + 0x1a0], ax
bt ecx, 0xa
jae 0x1601b8718
mov dword [rsp + 0x1b0], 0x28
lea rdx, [rsp + 0x1b0]
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.api_ms_win_ntuser_sysparams_l1_1_0.dll_GetMonitorInfoW]
test eax, eax
je 0x1601b8718
mov eax, dword [rsp + 0x1b4]
inc eax
mov dword [rsp + 0x1a4], eax
mov eax, dword [rsp + 0x1b8]
inc eax
mov dword [rsp + 0x1a8], eax
lea rdx, [rsp + 0x250]
mov ecx, 0x104
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1601b8741
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x1601b87f8
jmp 0x1601b8751
lea r13, [rsp + 0x250]
mov qword [rsp + 0x120], r13
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsi + 0x10]
call fcn.1601b8ea4
mov edi, eax
test eax, eax
jne 0x1601b87f8
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x110]
call fcn.1601b8d28
mov edi, eax
mov r15, qword [rsp + 0xe8]
test eax, eax
jne 0x1601b8800
lea rdx, [rsp + 0x100]
mov rcx, r15
call fcn.1601b8d28
mov edi, eax
test eax, eax
jne 0x1601b8800
lea rdx, [rsp + 0xf8]
mov rcx, r13
call fcn.1601b8d28
mov edi, eax
test eax, eax
jne 0x1601b8800
call fcn.1601b8b5c
lea ecx, [rdi + 8]
test eax, eax
cmovne r14d, ecx
mov dword [rsp + 0xd0], r14d
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_AllowSetForegroundWindow]
test eax, eax
je 0x1601b8916
or r14d, 0x10
mov dword [rsp + 0xd0], r14d
jmp 0x1601b8916
mov r15, qword [rsp + 0xe8]
cmp dword [rsp + 0xc8], ebx
je 0x1601b887c
mov dword [rsp + 0xe0], ebx
test edi, edi
jne 0x1601b8823
lea rcx, [rsp + 0x1e0]
call fcn.1601b90b8
mov edi, eax
cmp edi, 0x102
jne 0x1601b884f
mov edx, 1
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncCancelCall]
or edx, 0xffffffff
mov rcx, qword [rsp + 0x210]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncCompleteCall]
test edi, edi
jne 0x1601b8875
mov edi, dword [rsp + 0xe0]
test eax, eax
cmovne edi, eax
mov dword [rsp + 0xc8], ebx
mov rax, qword [rsp + 0x210]
test rax, rax
je 0x1601b889a
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsp + 0x210], rbx
test edi, edi
je 0x1601b8aa0
cmp qword [r12], rbx
je 0x1601b88b6
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [r12], rbx
mov rcx, qword [r12 + 8]
test rcx, rcx
je 0x1601b88cb
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [r12 + 8], rbx
lea eax, [rdi - 0x6ac]
cmp eax, 0x2d
ja 0x1601b8aa0
movabs rcx, 0x200000004201
bt rcx, rax
jae 0x1601b8aa0
mov eax, dword [rsp + 0xe4]
cmp eax, 1
ja 0x1601b8a9b
inc eax
mov dword [rsp + 0xe4], eax
call fcn.1601b9284
mov edi, eax
test eax, eax
jne 0x1601b8800
mov edx, 0x70
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncInitializeHandle]
mov edi, eax
test eax, eax
jne 0x1601b895f
mov dword [rsp + 0x20c], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rsp + 0x210], rax
test rax, rax
jne 0x1601b895f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x1601b8800
mov rcx, qword [0x160274dc8]
cmp qword [rsp + 0xc0], rbx
cmovne rcx, qword [rsp + 0xc0]
mov qword [rsp + 0xb0], r12
mov dword [rsp + 0xa8], ebx
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x88], rbx
mov dword [rsp + 0x80], 2
or dword [rsp + 0x78], 0xffffffff
mov qword [rsp + 0x70], rbx
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x178]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0x40c
mov dword [rsp + 0x38], r14d
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x1e0]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1601c0b50]
call qword [sym.imp.RPCRT4.dll_Ndr64AsyncClientCall]
mov dword [rsp + 0xc8], 1
jmp 0x1601b8800
mov edi, 0x425
mov rcx, qword [rsp + 0xf0]
cmp rcx, qword [rsi + 0x10]
je 0x1601b8ab4
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov rcx, qword [rsp + 0xf8]
cmp r13, rcx
je 0x1601b8ac7
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov rcx, qword [rsp + 0x100]
cmp rcx, r15
je 0x1601b8ada
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov rcx, qword [rsp + 0x108]
cmp rcx, qword [rsp + 0x110]
je 0x1601b8af2
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
cmp qword [rsp + 0xc0], rbx
je 0x1601b8b0a
lea rcx, [rsp + 0xc0]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov eax, edi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.16006e590
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret