Function at 0x140056b00
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x258
mov rax, qword [0x1401c6b58]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov sil, 1
cmp qword [0x1401ca420], 0
jne 0x140056e54
mov rdi, qword [0x1401ca3f8]
test rdi, rdi
je 0x140056b4d
test byte [0x1401c6b40], 1
jne 0x140056c5a
jmp 0x140056e54
mov ecx, 0x18
call fcn.140148228
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14014b870
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [section..rdata]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140001b50
movzx r8d, byte [rdi]
mov edx, r8d
shr edx, 1
lea rax, [rdi + 2]
test r8b, 1
mov r9, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov r11, r9
cmove r11, rdx
mov rbx, rcx
cmove rbx, rax
test r11, r11
je 0x140056c31
add r11, r11
nop word cs:[rax + rax]
test r11, r11
je 0x140056c31
lea r10, [r11 - 2]
cmp word [rbx + r11 - 2], 0x5c
mov r11, r10
jne 0x140056be0
cmp r10, 0xfffffffffffffffe
je 0x140056c31
sar r10, 1
lea r11, [r10 + 1]
test r8b, 1
jne 0x140056c1c
cmp r10, rdx
jae 0x140056e9f
add r11b, r11b
mov byte [rdi], r11b
mov rcx, rax
jmp 0x140056c29
cmp r9, r10
jbe 0x140056e9f
mov qword [rdi + 8], r11
mov word [rcx + r10*2 + 2], 0
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.14002e8a2
mov qword [0x1401ca3f8], rdi
test byte [0x1401c6b40], 1
je 0x140056e54
test byte [rdi], 1
jne 0x140056c65
add rdi, 2
jmp 0x140056c69
mov rdi, qword [rdi + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401ca420], rax
inc rax
cmp rax, 1
ja 0x140056e54
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14014b870
mov word [rsp + 0x40], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x140056e52
mov rdi, qword [0x1401ca3f8]
lea r14, [rsp + 0x40]
mov rcx, r14
call fcn.14016dfe4
mov rbx, rax
movzx eax, byte [rdi]
test al, 1
jne 0x140056d19
cmp rbx, 0xa
jbe 0x140056d57
movzx r9d, al
shr r9d, 1
mov edx, 0xa
jmp 0x140056d2f
mov rax, qword [rdi]
mov rdx, rax
and rdx, 0xfffffffffffffffe
dec rdx
cmp rdx, rbx
jae 0x140056d5d
mov r9, qword [rdi + 8]
mov r8, rbx
sub r8, rdx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], 0
mov rcx, rdi
call fcn.14002e212
jmp 0x140056d92
lea r14, [rdi + 2]
jmp 0x140056d61
mov r14, qword [rdi + 0x10]
test rbx, rbx
je 0x140056d7c
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.14014b1c0
movzx eax, byte [rdi]
test al, 1
jne 0x140056d87
lea eax, [rbx + rbx]
mov byte [rdi], al
jmp 0x140056d8b
mov qword [rdi + 8], rbx
mov word [r14 + rbx*2], 0
mov rcx, qword [0x1401ca3f8]
movzx eax, byte [rcx]
test al, 1
jne 0x140056db0
cmp al, 2
jb 0x140056e73
lea rdx, [rcx + 2]
shr eax, 1
jmp 0x140056dc1
mov rax, qword [rcx + 8]
test rax, rax
je 0x140056e73
mov rdx, qword [rcx + 0x10]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x140056de2
lea rdx, [0x1401885a8]
mov r8d, 1
call fcn.14002e8a2
mov rcx, qword [0x1401ca3f8]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14002e8a2
mov rcx, qword [0x1401ca3f8]
test byte [rcx], 1
jne 0x140056e06
add rcx, 2
jmp 0x140056e0a
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401ca420], rax
inc rax
cmp rax, 1
ja 0x140056e54
mov qword [0x1401ca420], 0
xor esi, esi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140148650
mov eax, esi
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rax, str.string::back__:_string_is_empty
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str.E:_nw82_sdk_win64_node_webkit_srcoutst_nw...._third_partylibc_srcinclude_string
lea r9, str._empty__
mov r8d, 0x528
call fcn.140005c64
mov rcx, rdi
call fcn.14000a778
int3