Function at 0x1400b49bc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd8
movzx r13d, word [rsp + 0x140]
mov r15, qword [rsp + 0x150]
mov eax, dword [rsp + 0x140]
shr eax, 0x10
mov rdi, r8
mov r8d, 0x200
mov dword [rsp + 0x128], eax
mov r14d, 1
mov r12d, r13d
and r12d, 4
mov eax, r13d
mov rbx, rdx
and eax, r8d
cmp r15, rcx
mov rsi, r9
cmove r8d, r14d
neg eax
mov rbp, rcx
sbb eax, eax
xor edx, edx
mov dword [rsp + 0x8c], r12d
and eax, r8d
mov qword [rsp + 0xc0], r15
mov dword [rsp + 0x58], eax
mov al, byte [0x1401178e2]
and byte [rcx + 0x10], 0x7f
mov byte [rsp + 0x140], al
movzx eax, r13w
and ax, 0x10
mov word [rsp + 0x48], ax
movzx eax, r13w
and ax, 0x40
mov word [rsp + 0x42], ax
mov eax, r13d
shr eax, 1
shl al, 7
or byte [rcx + 0x10], al
mov al, r13b
and al, r14b
mov byte [rsp + 0x120], al
cmp r15, rdx
je 0x1400b4a95
mov rax, qword [r15 + 0x40]
mov qword [rsp + 0x90], rax
jmp 0x1400b4a9d
mov qword [rsp + 0x90], rdx
test r13b, r13b
js 0x1400b4ad6
mov al, byte [0x140117ecf]
cmp al, dl
je 0x1400b4ad6
or al, 0x80
movzx ecx, al
mov byte [0x140117ecf], al
mov eax, r13d
and eax, 0x100
and ecx, 2
or ecx, eax
je 0x1400b4ad6
mov rcx, rbp
mov byte [0x140117ecf], dl
call fcn.1400192c4
xor edx, edx
mov rcx, qword [rbp + 0x40]
mov rax, qword [rsp + 0x148]
cmp rdi, rdx
cmove rdi, rbx
cmp rax, rdx
mov qword [rsp + 0x98], rcx
cmove rax, rbx
cmp rcx, rdx
mov qword [rsp + 0x130], rdi
mov edi, edx
setne dil
cmp byte [rsp + 0x140], dl
mov qword [rsp + 0x148], rax
mov rax, rdx
mov qword [rsp + 0x50], rdx
cmove rax, rcx
lea rcx, [rsp + 0x50]
mov rdx, rbx
mov dword [rsp + 0x44], edi
mov qword [rsp + 0xa0], rax
call fcn.140098d9c
xor r11d, r11d
cmp rsi, r11
mov ebx, r11d
setne bl
xor esi, esi
mov dword [rsp + 0x5c], ebx
mov qword [rsp + 0x78], rsi
cmp ebx, esi
je 0x1400b4b77
lea rcx, [rsp + 0x78]
mov edx, 0x20a
call fcn.14005a250
mov rdx, qword [rsp + 0x78]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x60], rsi
cmp ebx, esi
je 0x1400b4c26
lea rcx, [0x140118f08]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea rdx, [0x1400fd3f2]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbp
call fcn.14001c5dc
cmp rax, rsi
je 0x1400b4bc9
mov rdx, qword [rax]
lea rcx, [rsp + 0x80]
call fcn.140064e2c
lea rdx, [0x1400fd3da]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbp
call fcn.14001c5dc
cmp rax, rsi
je 0x1400b4bf1
mov rdx, qword [rax]
lea rcx, [rsp + 0x70]
call fcn.140064e2c
lea rdx, [0x1400fd40a]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbp
call fcn.14001c5dc
cmp rax, rsi
je 0x1400b4c19
mov rdx, qword [rax]
lea rcx, [rsp + 0x60]
call fcn.140064e2c
lea rcx, [0x140118f08]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov qword [rsp + 0xa8], rsi
mov rbx, rsi
cmp edi, esi
je 0x1400b4c8a
cmp r12d, esi
jne 0x1400b4c8a
mov cl, r14b
call fcn.1400c8b58
mov ecx, 0xa00
call fcn.1400ddcb8
mov rbx, rax
cmp rax, rsi
je 0x1400b4c87
call qword [sym.imp.USER32.DLL_GetDesktopWindow]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov r8d, 0x271c
mov rcx, rbx
mov rdx, rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.140067c24
mov rbx, rax
jmp 0x1400b4c8a
mov rbx, rsi
mov r12, qword [rsp + 0x98]
cmp rbx, rsi
cmovne r12, rbx
cmp r15, rsi
je 0x1400b4ca2
mov qword [r15 + 0x40], r12
mov rax, qword [rsp + 0x150]
mov r15, rsi
cmp rax, rsi
jne 0x1400b4cee
mov ecx, 0xf0
call fcn.1400ddcb8
mov r15, rax
cmp rax, rsi
je 0x1400b4ce0
mov rdx, rbp
mov rcx, rax
call fcn.1400162e8
mov rdx, rbp
mov rcx, r15
call fcn.140016cc8
mov qword [r15 + 0x40], r12
jmp 0x1400b4ce3
mov r15, rsi
mov rax, r15
mov qword [rsp + 0x150], rax
xor r11d, r11d
mov rsi, rbp
lea rcx, [0x140118f08]
cmp rax, r11
cmovne rsi, rax
mov eax, dword [rsp + 0x128]
mov word [rsi + 0x48], ax
mov rax, qword [rsi + 0x40]
mov qword [rsi + 0x40], r12
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rax, qword [rsi + 0x78]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsi + 0x80]
lea rcx, [0x140118f08]
mov qword [rsp + 0xb8], rax
mov al, byte [rsi + 0xd]
mov byte [rsp + 0x128], al
mov eax, dword [rsi + 8]
mov dword [rsp + 0x88], eax
mov al, byte [rsi + 0xda]
mov byte [rsp + 0x40], al
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rdx, qword [rsp + 0x130]
lea r11, [rsp + 0x50]
mov r8d, r14d
mov rcx, rsi
mov qword [rsi + 0x78], r11
mov rax, qword [rsp + 0x50]
mov rdi, qword [rax]
mov qword [rsi + 0x80], rdi
call fcn.1400683c0
movzx edx, word [rsi + 0x48]
mov rcx, rdi
call fcn.14001941c
xor ecx, ecx
mov dword [rsi + 0x8c], eax
cmp dword [rsp + 0x44], ecx
je 0x1400b4dbb
mov rax, qword [rsp + 0x148]
mov qword [r12 + 0x220], rax
mov dword [rsi + 0x24], ecx
test r13b, 0x10
je 0x1400b4dc8
or byte [rsi + 0xd], r14b
test r13b, 0x20
je 0x1400b4dd5
or byte [rsi + 0xda], r14b
mov rdi, qword [rsp + 0x138]
cmp dword [rsp + 0x5c], ecx
je 0x1400b4df6
movzx r8d, word [rsp + 0x42]
mov rdx, rdi
mov rcx, rsi
call fcn.140024f8c
xor ecx, ecx
cmp rdi, rcx
lea r13, [0x1400f9548]
cmovne r13, rdi
cmp dword [rsp + 0x44], ecx
je 0x1400b4e78
cmp rbx, rcx
je 0x1400b4e78
mov rax, qword [r12 + 0x190]
mov qword [r12 + 0x210], rsi
mov rcx, r12
mov qword [rax], rsi
mov byte [r12 + 0xb2], r14b
mov byte [r12 + 0xb1], 0xff
call fcn.14004bd8c
mov rdi, qword [rsp + 0xa0]
xor ecx, ecx
cmp rdi, rcx
je 0x1400b4e78
lea rcx, [0x140118f08]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
add qword [rdi + 0x150], r14
mov rax, rdi
lea rcx, [0x140118f08]
mov qword [rsp + 0xa8], rax
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor ecx, ecx
mov al, byte [rbp + 0xf]
cmp al, cl
je 0x1400b4e82
mov byte [rsi + 0xf], al
mov al, byte [rsp + 0x120]
mov byte [rsi + 0xe], al
cmp word [rsp + 0x48], cx
jne 0x1400b4f00
lea rcx, [0x140118f08]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea rdx, [0x140106168]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbp
call fcn.14001c5dc
xor r11d, r11d
cmp rax, r11
jne 0x1400b4ec7
lea r8, [0x1400fe560]
jmp 0x1400b4ee2
mov rdx, qword [rax]
lea rcx, [0x140103a0c]
call fcn.1400536b0
cmp al, r11b
jne 0x1400b4ef1
lea r8, [0x1400fd8a8]
lea rdx, [0x140106150]
mov rcx, rsi
call fcn.1400596c4
lea rcx, [0x140118f08]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor ecx, ecx
test byte [rbp + 0x10], 0x80
je 0x1400b4f0a
and byte [rsi + 0x10], 0xfe
cmp word [r13], cx
je 0x1400b4f28
test byte [rsi + 0x10], 8
jne 0x1400b4f28
cmp byte [rsi + 0xd8], cl
je 0x1400b4f28
mov edi, r14d
test byte [rsi + 0x10], r14b
jne 0x1400b4f2a
mov edi, ecx
mov rax, qword [0x140117bf8]
cmp rax, rcx
jle 0x1400b4f91
cmp edi, ecx
je 0x1400b4f91
lea rdx, [0x1400fd720]
lea rcx, [rsp + 0x138]
call fcn.140064d14
lea rcx, [rsp + 0x138]
mov rdx, r13
call fcn.14005a28c
mov rdx, qword [rsp + 0x138]
xor r11d, r11d
mov qword [rsp + 0x28], r11
lea r9d, [r11 + 0x11]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], r11
call fcn.1400281e8
lea rcx, [rsp + 0x138]
call fcn.140052160
xor ecx, ecx
mov byte [rsi + 0xd8], r14b
cmp dword [rsp + 0x44], ecx
je 0x1400b50f0
cmp rbx, rcx
je 0x1400b50f0
cmp byte [rsp + 0x140], cl
je 0x1400b50db
mov rax, qword [r12]
xor r8d, r8d
mov edx, 0x271d
mov rcx, r12
mov byte [r12 + 0xb1], 0x81
mov byte [r12 + 0xb0], 0x10
call qword [rax + 0x10]
mov rdx, qword [r12 + 0x20]
lea r9, [0x1400ff428]
lea r8, [0x140105d80]
mov rcx, rsi
call fcn.14005d100
mov rdx, qword [rsp + 0x148]
xor r11d, r11d
mov rcx, rsi
mov qword [r12 + 0x220], r11
call fcn.1400a99c0
xor ecx, ecx
cmp qword [r12 + 0x150], rcx
jg 0x1400b5036
mov rax, qword [r12 + 0x130]
cmp dword [rax], ecx
jg 0x1400b5036
mov rax, qword [r12 + 0x148]
cmp dword [rax], ecx
jle 0x1400b506a
mov rcx, qword [r12 + 0x20]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov byte [r12 + 0xb1], 0xff
call qword [sym.imp.USER32.DLL_PostMessageW]
mov edx, 0x20
mov rcx, r12
call fcn.1400cb340
mov byte [r12 + 0xb1], 0x81
xor r12d, r12d
cmp word [r13], r12w
je 0x1400b517c
cmp edi, r12d
je 0x1400b517c
lea rdx, [0x140106140]
lea rcx, [rsp + 0x130]
call fcn.140064d14
lea rcx, [rsp + 0x130]
mov rdx, r13
call fcn.14005a28c
mov rdx, qword [rsp + 0x130]
xor r13d, r13d
lea r9d, [r13 + 0x11]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call fcn.1400281e8
lea rcx, [rsp + 0x130]
call fcn.140052160
jmp 0x1400b517f
mov byte [r12 + 0xb0], cl
mov rcx, r12
call fcn.1400cb69c
jmp 0x1400b506a
mov rdx, qword [rsp + 0x148]
mov rcx, rsi
call fcn.1400a99c0
mov rcx, qword [rsi + 0x40]
xor r12d, r12d
cmp rcx, r12
je 0x1400b515b
cmp dword [rsp + 0x8c], r12d
jne 0x1400b515b
test byte [rsi + 0xd9], r14b
je 0x1400b515b
mov rax, qword [rsi + 0x38]
cmp rcx, qword [rax + 0x40]
je 0x1400b515b
mov rax, qword [rsp + 0x68]
cmp rax, rcx
je 0x1400b515b
cmp rsi, rbp
je 0x1400b515b
cmp rcx, qword [rbp + 0x40]
je 0x1400b515b
mov rcx, qword [rcx + 0x20]
lea edx, [r12 + 0x10]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.DLL_PostMessageW]
mov rbx, qword [rsi + 0x40]
mov qword [rsi + 0x40], r12
mov rcx, qword [rsp + 0x68]
cmp rcx, r12
jne 0x1400b506d
cmp qword [rsi + 0x40], r12
cmovne rcx, qword [rsi + 0x40]
mov qword [rsp + 0x68], rcx
jmp 0x1400b506d
xor r13d, r13d
movsxd rdi, dword [rsi + 0xd0]
mov r12d, dword [rsp + 0x58]
cmp qword [rsp + 0x150], r13
je 0x1400b51b0
cmp r12d, r14d
je 0x1400b51b0
cmp r12d, r13d
jne 0x1400b51f9
mov edx, dword [rsp + 0x88]
mov rcx, rsi
call fcn.140044c48
jmp 0x1400b51f9
lea rcx, [0x140118f08]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rax, qword [rsp + 0xb8]
mov r11, qword [rsp + 0xb0]
mov qword [rsi + 0x80], rax
mov al, byte [rsp + 0x128]
lea rcx, [0x140118f08]
mov byte [rsi + 0xd], al
mov al, byte [rsp + 0x40]
mov qword [rsi + 0x78], r11
mov byte [rsi + 0xda], al
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp qword [rsi + 0x40], r13
je 0x1400b5208
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x40], rax
mov rsi, qword [rsp + 0xc0]
cmp rsi, r13
je 0x1400b5221
mov rax, qword [rsp + 0x90]
mov qword [rsi + 0x40], rax
cmp r15, r13
je 0x1400b5241
xor edx, edx
mov rcx, r15
call fcn.140044c48
lea rcx, [r15 + 0x70]
call fcn.140052160
mov rcx, r15
call fcn.1400ddacc
cmp rbx, r13
je 0x1400b5252
mov rax, qword [rbx]
mov edx, r14d
mov rcx, rbx
call qword [rax + 0x18]
mov rbx, qword [rsp + 0xa8]
lea r15, [0x140118f08]
cmp rbx, r13
je 0x1400b5278
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
dec qword [rbx + 0x150]
jmp 0x1400b528e
mov rbx, qword [rsp + 0xa0]
cmp rbx, r13
je 0x1400b52b5
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp byte [rbx + 0xb1], 0x81
je 0x1400b52ac
mov rcx, qword [rbx + 0x20]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x43d
call qword [sym.imp.USER32.DLL_PostMessageW]
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call fcn.140057ffc
cmp dword [rsp + 0x5c], r13d
je 0x1400b53d0
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp r12d, r13d
je 0x1400b52d8
cmp rsi, r13
jne 0x1400b52db
mov r14d, r13d
lea rdx, [0x1400fd3f2]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbp
call fcn.14001c5dc
cmp rax, r13
je 0x1400b5326
mov rdx, qword [rsp + 0x80]
lea rcx, [0x1400fd3f4]
call fcn.140058094
cmp r14d, r13d
je 0x1400b5326
mov r8, qword [rsp + 0x80]
lea rdx, [0x1400fd3f0]
mov rcx, rsi
call fcn.1400596c4
lea rdx, [0x1400fd3da]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbp
call fcn.14001c5dc
cmp rax, r13
je 0x1400b536b
mov rdx, qword [rsp + 0x70]
lea rcx, [0x1400fd3dc]
call fcn.140058094
cmp r14d, r13d
je 0x1400b536b
mov r8, qword [rsp + 0x70]
lea rdx, [0x1400fd3d8]
mov rcx, rsi
call fcn.1400596c4
lea rdx, [0x1400fd40a]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbp
call fcn.14001c5dc
cmp rax, r13
je 0x1400b53b0
mov rdx, qword [rsp + 0x60]
lea rcx, [0x1400fd40c]
call fcn.140058094
cmp r14d, r13d
je 0x1400b53b0
mov r8, qword [rsp + 0x60]
lea rdx, [0x1400fd408]
mov rcx, rsi
call fcn.1400596c4
cmp word [rsp + 0x42], r13w
jne 0x1400b53c7
mov rcx, qword [rsp + 0x78]
call fcn.1400184f0
call fcn.14001c1f0
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp qword [rbp + 0x40], r13
je 0x1400b53e2
mov rax, qword [rsp + 0x98]
mov qword [rbp + 0x40], rax
cmp byte [rsp + 0x140], r13b
jne 0x1400b53f6
xor edx, edx
mov rcx, rbp
call fcn.14008df1c
lea rcx, [rsp + 0x60]
call fcn.140052160
lea rcx, [rsp + 0x70]
call fcn.140052160
lea rcx, [rsp + 0x80]
call fcn.140052160
lea rcx, [rsp + 0x78]
call fcn.140052160
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov r11, qword [rsp + 0x50]
cmp r11, r13
je 0x1400b5458
dec dword [r11 + 8]
mov rbx, qword [rsp + 0x50]
cmp dword [rbx + 8], r13d
jg 0x1400b5453
mov rcx, rbx
call fcn.140052160
mov rcx, rbx
call fcn.1400ddacc
mov qword [rsp + 0x50], r13
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rax, rdi
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret