Function at 0x140058940
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x298]
sub rsp, 0x398
lea rdx, [rbp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140059137
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x140059441
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rbx, str.TkE_bm5Rcm1wYz9zcm1TbmJfcmNw
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140031e00
mov rdi, 0xffffffffffffffff
test al, al
jne 0x1400589db
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400589c0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140032190
nop
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x14005944c
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rbx, str.ICN1cVo_c3JtU25iX3JjcCxjdmMgHi1n
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140031e00
test al, al
jne 0x140058a31
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140058a16
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140032190
nop
xor r14d, r14d
mov qword [rbp - 0x10], r14
mov qword [rbp], r14
mov qword [rbp + 8], r14
lea r8d, [r14 + 0x3c]
lea rdx, str.UW1kcnVfcGNaS2dhcG1xbWRyWlVnbGJtdXFaQXNwcGNsclRjcHFnbWxaUHNs
lea rcx, [rbp - 0x10]
call fcn.140030750
nop
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x140059457
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rbp + 0x2f8], rax
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x140059462
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rbx, str.TlIvNkY
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140031e00
test al, al
jne 0x140058acd
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140058ab2
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140032190
nop
mov r12, qword [rsp + 0x58]
lea rcx, [r12 - 0x18]
call fcn.1400318c0
add rax, 0x18
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x70]
call fcn.14004beb0
nop
lea r8, [rbp + 0x80]
mov rdx, qword [rax]
lea rcx, [rbp + 0x2f8]
call fcn.140025c80
nop
mov rdx, qword [rbp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058b26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x30]
add rcx, 0xffffffffffffffe8
mov qword [rbp + 0x48], rcx
call fcn.1400318c0
add rax, 0x18
mov qword [rbp - 0x60], rax
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x18]
call fcn.14004beb0
mov rbx, rax
mov r13, qword [rsp + 0x38]
add r13, 0xffffffffffffffe8
mov rcx, r13
call fcn.1400318c0
add rax, 0x18
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x10]
call fcn.14004beb0
nop
mov r8, rbx
lea rdx, [rbp + 0x2f8]
mov rcx, rax
call fcn.1400576e0
mov byte [rbp + 0x2e0], al
mov rdx, qword [rbp + 0x10]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140058bae
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rdx, qword [rbp + 0x18]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058bcb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp + 0x20]
mov qword [rbp + 0x78], rax
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
lea r15, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae r15, qword [rbp - 0x10]
movabs rbx, 0x7ffffffffffffffe
mov rsi, qword [rbp]
cmp rsi, rbx
ja 0x14005946d
mov qword [rbp - 0x68], 7
cmp rsi, 8
jae 0x140058c2a
mov qword [rbp - 0x70], rsi
mov r8d, 0x10
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140185440
jmp 0x140058c71
mov rax, rsi
or rax, 7
cmp rax, rbx
ja 0x140058c45
mov rbx, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbx, rcx
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x80]
call fcn.140030fc0
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rbx
lea r8, [rsi*2 + 2]
mov rdx, r15
mov rcx, rax
call fcn.140185440
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x20]
call fcn.14004bc20
mov rbx, rax
lea rax, [rbp - 0x48]
mov qword [rbp + 0x60], rax
mov rcx, qword [rbp + 0x2f8]
add rcx, 0xffffffffffffffe8
call fcn.1400318c0
add rax, 0x18
mov qword [rbp - 0x48], rax
mov rcx, r13
call fcn.1400318c0
add rax, 0x18
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x28]
call fcn.14004beb0
nop
mov r8, rbx
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.14004f7f0
movzx esi, al
cmp byte [rbp + 0x2e0], 0
je 0x140058ce2
test al, al
jne 0x140059081
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x140059473
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rbx, str.bnBtYnNhcg
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140031e00
test al, al
jne 0x140058d3b
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140058d20
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140032190
nop
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x14005947e
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rbx, str.cl9xaV1hcGNfcmdtbF1kX2dqY2I
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140031e00
test al, al
jne 0x140058d91
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140058d76
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140032190
nop
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x140059489
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rbx, str.cnFmXWFwY19yZ21sXXBjcTsjYiRfc3JtcHNsXWFwY19yZ21sOyNi
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140031e00
test al, al
jne 0x140058deb
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140058dd0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140032190
nop
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x140059494
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov r15, qword [rsp + 0x60]
lea rcx, [r15 - 0x18]
call fcn.1400318c0
add rax, 0x18
mov qword [rbp - 0x40], rax
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x30]
call fcn.14004beb0
nop
mov r9d, r14d
test sil, sil
setne r9b
cmp byte [rbp + 0x2e0], 0
setne r14b
mov r8d, r14d
mov rdx, qword [rax]
lea rcx, [rsp + 0x78]
call fcn.140025c80
nop
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058e72
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x14005949f
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rbp + 0x2f0], rax
lea rbx, [0x1401e3cf8]
mov rdx, rbx
lea rcx, [rbp + 0x2f0]
call fcn.140031e00
test al, al
jne 0x140058ece
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140058eb1
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp + 0x2f0]
call fcn.140032190
nop
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x1400594aa
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rbp + 0x2e8], rax
mov rdx, rbx
lea rcx, [rbp + 0x2e8]
call fcn.140031e00
test al, al
jne 0x140058f23
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140058f06
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp + 0x2e8]
call fcn.140032190
nop
mov r14, qword [rsp + 0x68]
lea rcx, [r14 - 0x18]
call fcn.1400318c0
add rax, 0x18
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x40]
call fcn.14004beb0
mov rbx, rax
mov rsi, qword [rsp + 0x70]
lea rcx, [rsi - 0x18]
call fcn.1400318c0
add rax, 0x18
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x38]
call fcn.14004beb0
nop
lea rcx, [rbp + 0x2f0]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x2e8]
lea r8, [rsp + 0x78]
mov rdx, rbx
mov rcx, rax
call fcn.140061650
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058faf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058fcd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x2e8]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058fee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x2f0]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005900f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005902e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [r15 - 8], eax
sub eax, 1
jg 0x14005904a
mov rcx, qword [r15 - 0x18]
mov rax, qword [rcx]
lea rdx, [r15 - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x140059066
mov rcx, qword [r14 - 0x18]
mov rax, qword [rcx]
lea rdx, [r14 - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140059081
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
mov rdx, qword [rbp + 0x48]
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005909b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x2f8]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400590bc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x1400590fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400590f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400594b5
call fcn.140183144
nop
mov eax, edi
lock xadd dword [r12 - 8], eax
sub eax, 1
jg 0x14005911c
mov rcx, qword [r12 - 0x18]
mov rax, qword [rcx]
lea rdx, [r12 - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock xadd dword [r13 + 0x10], edi
sub edi, 1
jg 0x140059422
mov rcx, qword [r13]
mov rdx, r13
jmp 0x14005941c
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x1400594bb
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rbx, str.bnBtYnNhcg
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140031e00
mov rdi, 0xffffffffffffffff
test al, al
jne 0x14005919b
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140059180
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140032190
nop
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x1400594c6
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rbx, str.RWNyQXNwcGNsckJncGNhcm1wd11kX2dqY2I
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140031e00
test al, al
jne 0x1400591f1
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400591d6
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140032190
nop
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x1400594d1
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rbx, [0x1401e3cf8]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140031e00
test al, al
jne 0x14005924b
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140059230
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140032190
nop
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x1400594dc
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140031e00
test al, al
jne 0x14005929b
mov rax, rdi
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140059280
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140032190
nop
call fcn.140031bd0
mov rcx, rax
test rax, rax
je 0x140059436
mov rax, qword [rax]
call qword [rax + SafeArrayPutElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140031e00
test al, al
jne 0x1400592eb
mov rax, rdi
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400592d0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140032190
nop
mov r14, qword [rsp + 0x38]
lea rcx, [r14 - 0x18]
call fcn.1400318c0
add rax, 0x18
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x58]
call fcn.14004beb0
mov rbx, rax
mov rsi, qword [rsp + 0x30]
lea rcx, [rsi - 0x18]
call fcn.1400318c0
add rax, 0x18
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x50]
call fcn.14004beb0
nop
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, rax
call fcn.140061650
nop
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140059373
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140059391
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400593b0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400593cf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400593ee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x14005940a
mov rcx, qword [r14 - 0x18]
mov rax, qword [rcx]
lea rdx, [r14 - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock xadd dword [rsi - 8], edi
sub edi, 1
jg 0x140059422
mov rcx, qword [rsi - 0x18]
lea rdx, [rsi - 0x18]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x398
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140032160
nop
mov ecx, 0x80004005
call fcn.140032160
nop
mov ecx, 0x80004005
call fcn.140032160
nop
mov ecx, 0x80004005
call fcn.140032160
nop
mov ecx, 0x80004005
call fcn.140032160
nop
call fcn.140030df0
int3
mov ecx, 0x80004005
call fcn.140032160
nop
mov ecx, 0x80004005
call fcn.140032160
nop
mov ecx, 0x80004005
call fcn.140032160
nop
mov ecx, 0x80004005
call fcn.140032160
nop
mov ecx, 0x80004005
call fcn.140032160
nop
mov ecx, 0x80004005
call fcn.140032160
nop
call fcn.140189c24
nop
mov ecx, 0x80004005
call fcn.140032160
nop
mov ecx, 0x80004005
call fcn.140032160
nop
mov ecx, 0x80004005
call fcn.140032160
nop
mov ecx, 0x80004005
call fcn.140032160
int3