Function at 0x140002540
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x6f8]
sub rsp, 0x7d0
mov qword [rbp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400220a0]
xor rax, rsp
mov qword [rbp + 0x6c0], rax
mov rsi, rdx
mov qword [rbp - 0x48], rcx
mov rax, qword [rbp + 0x720]
mov qword [rbp - 0x18], rax
call fcn.140003b50
mov rcx, rax
xor r15d, r15d
mov edx, r15d
test rax, rax
setne dl
test edx, edx
jne 0x1400025b4
mov ecx, 0x80004005
call fcn.140001900
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x48], rdi
call fcn.140003b50
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400025e3
mov ecx, 0x80004005
call fcn.140001900
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
mov dword [rbp - 0x60], r15d
lea rdx, [rdi - 0x18]
mov rbx, qword [rdx]
or r14, 0xffffffffffffffff
cmp dword [rdx + 8], 0
je 0x140002659
cmp dword [rdx + 0x10], 0
jge 0x140002637
cmp dword [rdi - 0xc], 0
jge 0x14000262d
mov ecx, 0x80070057
call fcn.140001900
int3
mov dword [rdi - 0x10], r15d
mov word [rdi], r15w
jmp 0x140002659
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002647
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x48], rdi
mov rax, qword [rsp + 0x38]
lea rdx, [rax - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400026b8
cmp dword [rdx + 0x10], 0
jge 0x140002691
cmp dword [rax - 0xc], 0
jge 0x140002682
mov ecx, 0x80070057
call fcn.140001900
int3
mov rax, qword [rsp + 0x38]
mov dword [rax - 0x10], r15d
mov word [rax], r15w
jmp 0x1400026b8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400026a1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov eax, 0xf
mov word [rbp - 0x40], ax
mov qword [rbp - 0x38], r15
mov r13d, 1
mov dword [rbp - 0x30], r13d
mov dword [rbp - 0x2c], r14d
mov dword [rbp - 0x28], r13d
mov rax, qword [rsi]
lea r8, [rbp + 0x78]
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [rax + 0x18]
test eax, eax
jne 0x140002bec
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r13, rax
mov qword [rbp - 0x80], rax
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [rsp + 0x40], eax
mov r12d, r15d
mov dword [rbp - 0x58], r15d
test eax, eax
jle 0x140002bd4
nop dword [rax + rax]
call fcn.140003b50
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
je 0x140002bc9
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
mov r9d, 0x104
lea r8, [rbp + 0x90]
mov edx, r12d
mov rcx, r13
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
lea rax, [rbp + 0x90]
mov rsi, r14
nop dword [rax + rax]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140002790
test esi, esi
jne 0x1400027f8
lea rdx, [rbx - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14000287d
cmp dword [rdx + 0x10], 0
jge 0x1400027cc
cmp dword [rbx - 0xc], 0
jl 0x140002b92
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14000287d
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400027dc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov rdi, qword [rsp + 0x48]
jmp 0x14000287d
mov r13d, dword [rbx - 0x10]
lea r12, [rbp + 0x90]
sub r12, rbx
sar r12, 1
test esi, esi
js 0x140002bbe
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140002833
mov edx, esi
lea rcx, [rsp + 0x70]
call fcn.1400044b0
mov rbx, qword [rsp + 0x70]
movsxd rax, esi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x140002857
lea r8, [rbx + r12*2]
call fcn.1400069f0
jmp 0x140002863
lea r8, [rbp + 0x90]
call fcn.140006968
cmp esi, dword [rbx - 0xc]
jg 0x140002bb3
mov dword [rbx - 0x10], esi
mov word [r13 + rbx], r15w
mov r12d, dword [rbp - 0x58]
mov r13, qword [rbp - 0x80]
lea r8, [0x140018aa8]
lea rdx, [0x140018ab0]
lea rcx, [rsp + 0x70]
call fcn.1400049b0
cmp dword [rdi - 0x10], 0
jne 0x1400028b6
mov r8, qword [rsp + 0x70]
lea rdx, str.__s_
lea rcx, [rsp + 0x48]
call fcn.140003950
jmp 0x140002992
lea r8, [0x140018ac8]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x50]
call fcn.140001380
nop
lea r8, [rbp + 0x90]
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.140001380
nop
lea r8, [0x140018ac4]
mov rdx, rax
lea rcx, [rbp]
call fcn.140001380
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140002948
cmp dword [rdi + 0x10], 0
jl 0x140002939
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140002939
call fcn.140001a10
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x14000292e
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [r8 + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x140002948
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.140004e30
nop
mov rdx, qword [rbp]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002961
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000297a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002992
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rsp + 0x38]
cmp dword [rax - 0x10], 0
jne 0x1400029b8
mov r8, qword [rsp + 0x70]
lea rdx, str.__s_
lea rcx, [rsp + 0x38]
call fcn.140003950
jmp 0x140002a99
lea r8, [0x140018ac8]
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 8]
call fcn.140001380
nop
lea r8, [rbp + 0x90]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140001380
nop
lea r8, [0x140018ac4]
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.140001380
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x38]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140002a4f
cmp dword [rbx + 0x10], 0
jl 0x140002a40
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140002a40
call fcn.140001a10
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x140002a35
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x140002a4f
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140004e30
nop
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002a68
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002a81
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 8]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002a99
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp - 0x70]
mov qword [rbp - 0x58], rbx
cmp rbx, qword [rbp - 0x68]
jb 0x140002abc
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x78]
call fcn.140003c40
test al, al
je 0x140002b9d
mov rax, qword [rbp - 0x78]
lea rbx, [rax + rbx*8]
mov qword [rbp - 0x50], rbx
test rbx, rbx
je 0x140002b5d
call fcn.140003b50
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
je 0x140002ba8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rcx, [rbp + 0x90]
lea rax, [rbp + 0x90]
test rax, 0xffffffffffff0000
jne 0x140002b2e
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.140001850
test rax, rax
je 0x140002b5d
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.140004290
jmp 0x140002b5d
lea rcx, [rbp + 0x90]
mov rax, r14
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140002b40
mov r8d, eax
lea rdx, [rbp + 0x90]
mov rcx, rbx
call fcn.140004e30
nop
inc qword [rbp - 0x70]
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002b7a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc r12d
mov dword [rbp - 0x58], r12d
mov rdi, qword [rsp + 0x48]
cmp r12d, dword [rsp + 0x40]
jge 0x140002bd4
jmp 0x140002740
mov ecx, 0x80070057
call fcn.140001900
int3
mov ecx, 0x8007000e
call fcn.140001900
nop
mov ecx, 0x80004005
call fcn.140001900
nop
mov ecx, 0x80070057
call fcn.140001900
int3
mov ecx, 0x80070057
call fcn.140001900
nop
mov ecx, 0x80004005
call fcn.140001900
int3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r13d, 1
cmp dword [rdi - 0x10], 0
je 0x140003768
call fcn.140003b50
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x140002c16
mov ecx, 0x80004005
call fcn.140001900
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov r8d, 0x104
lea rdx, [rbp + 0x4b0]
mov rcx, qword [0x140022038]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rbp + 0x4b0]
mov rdi, r14
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140002c50
test edi, edi
jne 0x140002cba
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140002d3b
cmp dword [rdx + 0x10], 0
jge 0x140002c93
cmp dword [rbx - 0xc], 0
jge 0x140002c86
mov ecx, 0x80070057
call fcn.140001900
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x140002d3b
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002ca3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x140002d3b
mov r12d, dword [rbx - 0x10]
lea rsi, [rbp + 0x4b0]
sub rsi, rbx
sar rsi, 1
test edi, edi
jns 0x140002cda
mov ecx, 0x80070057
call fcn.140001900
int3
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140002cfa
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400044b0
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x140002d1e
lea r8, [rbx + rsi*2]
call fcn.1400069f0
jmp 0x140002d2a
lea r8, [rbp + 0x4b0]
call fcn.140006968
cmp edi, dword [rbx - 0xc]
jg 0x14000375d
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], r15w
mov edx, 0x5c
mov rcx, rbx
call fcn.140006a64
test rax, rax
je 0x140003747
sub rax, rbx
sar rax, 1
test eax, eax
js 0x140003747
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], r15d
lea edx, [rax + 1]
mov r8d, 0x12c
lea rcx, [rsp + 0x30]
call fcn.140001ef0
lea r8, str.PotPlayer64.exe
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x18]
call fcn.140001380
nop
mov rbx, qword [rax]
mov qword [rbp - 0x50], r15
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.140003c40
test al, al
jne 0x140002dbf
mov ecx, 0x8007000e
call fcn.140001900
int3
mov rcx, qword [rsp + 0x50]
mov qword [rbp - 0x80], rcx
test rcx, rcx
je 0x140002dd6
mov rdx, rbx
call fcn.140001070
nop
inc qword [rsp + 0x58]
mov rdx, qword [rbp + 0x18]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002df3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r8, str.PotPlayerMini64.exe
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140001380
nop
mov rsi, qword [rax]
mov rbx, qword [rsp + 0x58]
mov rdi, rbx
mov qword [rbp - 0x50], rbx
cmp rbx, qword [rsp + 0x60]
jb 0x140002e41
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x50]
call fcn.140003c40
test al, al
jne 0x140002e3c
mov ecx, 0x8007000e
call fcn.140001900
int3
mov rbx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
lea rcx, [rax + rdi*8]
mov qword [rbp - 0x80], rcx
test rcx, rcx
je 0x140002e5c
mov rdx, rsi
call fcn.140001070
nop
inc rbx
mov qword [rsp + 0x58], rbx
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002e7c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r8, str.PotPlayerLite64.exe
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x30]
call fcn.140001380
nop
mov rsi, qword [rax]
mov rbx, qword [rsp + 0x58]
mov rdi, rbx
mov qword [rbp - 0x50], rbx
cmp rbx, qword [rsp + 0x60]
jb 0x140002eca
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x50]
call fcn.140003c40
test al, al
jne 0x140002ec5
mov ecx, 0x8007000e
call fcn.140001900
int3
mov rbx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
lea rcx, [rax + rdi*8]
mov qword [rbp - 0x80], rcx
test rcx, rcx
je 0x140002ee5
mov rdx, rsi
call fcn.140001070
nop
inc rbx
mov qword [rsp + 0x58], rbx
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002f05
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x10]
cmp eax, 2
jne 0x140002ff6
mov rdi, qword [rsp + 0x58]
cmp rdi, 2
ja 0x140002f2b
mov ecx, 0x80070057
call fcn.140001900
int3
mov rsi, qword [rsp + 0x50]
mov rdx, qword [rsi + 0x10]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x30]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140002f8e
cmp dword [rbx + 0x10], 0
jl 0x140002f80
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140002f80
call fcn.140001a10
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x140002f70
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x58]
jmp 0x140002f8e
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140004e30
cmp rdi, 3
jb 0x140002feb
add rdi, 0xfffffffffffffffd
mov rdx, qword [rsi + 0x10]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002fb0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test rdi, rdi
je 0x140002fca
mov rdx, qword [rsp + 0x50]
add rdx, 0x18
mov r8, rdi
lea rcx, [rsi + 0x10]
call fcn.140004950
dec qword [rsp + 0x58]
mov r9, r13
mov rbx, qword [rsp + 0x30]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140004120
jmp 0x1400030e2
mov ecx, 0x80070057
call fcn.140001900
int3
cmp eax, 1
jne 0x1400030dd
mov rdi, qword [rsp + 0x58]
cmp rdi, 1
ja 0x140003015
mov ecx, 0x80070057
call fcn.140001900
int3
mov rsi, qword [rsp + 0x50]
mov rdx, qword [rsi + 8]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x30]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140003078
cmp dword [rbx + 0x10], 0
jl 0x14000306a
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14000306a
call fcn.140001a10
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14000305a
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x58]
jmp 0x140003078
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140004e30
cmp rdi, 2
jb 0x1400030d2
add rdi, 0xfffffffffffffffe
mov rdx, qword [rsi + 8]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000309a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test rdi, rdi
je 0x1400030b4
mov rdx, qword [rsp + 0x50]
add rdx, 0x10
mov r8, rdi
lea rcx, [rsi + 8]
call fcn.140004950
dec qword [rsp + 0x58]
mov r9, r13
mov rbx, qword [rsp + 0x30]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140004120
jmp 0x1400030e2
mov ecx, 0x80070057
call fcn.140001900
int3
mov rbx, qword [rsp + 0x30]
mov rdi, r15
cmp qword [rsp + 0x58], r15
jbe 0x140003186
mov rsi, qword [rsp + 0x58]
cmp rdi, rsi
jae 0x14000317b
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + rdi*8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000311b
inc rdi
cmp rdi, rsi
jb 0x1400030f0
jmp 0x140003186
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + rdi*8]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x140003186
cmp dword [rdi + 0x10], 0
jl 0x140003166
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140003166
call fcn.140001a10
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x14000315b
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [r8 + 8]
add rbx, 0x18
mov qword [rsp + 0x30], rbx
jmp 0x140003186
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140004e30
mov rbx, qword [rsp + 0x30]
jmp 0x140003186
mov ecx, 0x80070057
call fcn.140001900
int3
mov r12, qword [rbp - 0x70]
cmp r12, 1
jne 0x140003238
mov r8, qword [rbp - 0x78]
lea rdx, [0x140018ac4]
lea rcx, [rbp + 0x38]
call fcn.140001450
nop
lea r8, [0x140018ac4]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140001380
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x38]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140003216
cmp dword [rbx + 0x10], 0
jl 0x140003207
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140003207
call fcn.140001a10
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x1400031fc
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x140003216
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140004e30
nop
mov rdx, qword [rbp + 0x10]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000322f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x38]
jmp 0x14000352b
lea rdx, [rbp + 0x2a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140003544
call fcn.140003b50
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x140003272
mov ecx, 0x80004005
call fcn.140001900
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rcx, [rbp + 0x2a0]
lea rax, [rbp + 0x2a0]
test rax, 0xffffffffffff0000
jne 0x1400032bd
movzx ebx, cx
xor edx, edx
mov ecx, ebx
call fcn.140001850
test rax, rax
je 0x1400032ef
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140004290
jmp 0x1400032ef
lea rcx, [rbp + 0x2a0]
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400032d0
mov r8d, eax
lea rdx, [rbp + 0x2a0]
lea rcx, [rsp + 0x78]
call fcn.140004e30
nop
xor edx, edx
lea rcx, [rbp + 0x58]
call fcn.140005180
nop
mov r8d, 0xd
lea rdx, str.PotPlayer.m3u
lea rcx, [rsp + 0x78]
call fcn.140001730
mov r8d, r13d
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp + 0x58]
call fcn.1400055f0
test al, al
je 0x14000351c
mov edi, r15d
mov esi, dword [rbp - 0x70]
test esi, esi
jle 0x140003379
mov rbx, r15
mov r13, qword [rbp - 0x78]
nop dword [rax]
cmp rbx, r12
jae 0x14000336e
mov rdx, qword [r13 + rbx*8]
lea rcx, [rbp + 0x58]
call fcn.1400056c0
lea rdx, [0x140018b5c]
lea rcx, [rbp + 0x58]
call fcn.1400056c0
inc edi
inc rbx
cmp edi, esi
jl 0x140003340
jmp 0x140003379
mov ecx, 0x80070057
call fcn.140001900
int3
lea r8, [rsp + 0x78]
lea rdx, [0x140018ac4]
lea rcx, [rbp - 0x10]
call fcn.140001450
nop
lea r8, [0x140018ac4]
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.140001380
nop
mov r13, qword [rax]
lea rcx, [r13 - 0x18]
mov rbx, qword [rsp + 0x38]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x1400034ea
cmp dword [rdi + 0x10], 0
jl 0x1400033ef
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400033ef
call fcn.140001a10
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x1400033e6
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [r8 + 8]
lea rax, [rbx + 0x18]
jmp 0x1400034e5
movsxd rsi, dword [r13 - 0x10]
test esi, esi
jne 0x14000344d
mov rsi, qword [rdi]
cmp dword [rdi + 8], 0
je 0x1400034ea
cmp dword [rdi + 0x10], 0
jge 0x140003428
cmp dword [rbx - 0xc], 0
jge 0x14000341b
mov ecx, 0x80070057
call fcn.140001900
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x1400034ea
lock add dword [rdi + 0x10], 0xffffffff
jg 0x14000343b
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
add rax, 0x18
jmp 0x1400034e5
test r13, r13
jne 0x14000345d
mov ecx, 0x80070057
call fcn.140001900
int3
mov eax, dword [rbx - 0x10]
mov dword [rsp + 0x40], eax
mov r12, r13
sub r12, rbx
sar r12, 1
test esi, esi
jns 0x14000347c
mov ecx, 0x80070057
call fcn.140001900
int3
mov ecx, 1
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, esi
or eax, ecx
jge 0x14000349e
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.1400044b0
mov rbx, qword [rsp + 0x38]
mov eax, dword [rsp + 0x40]
lea rdi, [rsi + rsi]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, rdi
add rdx, rdx
cmp r12, rax
ja 0x1400034c3
lea r8, [rbx + r12*2]
call fcn.1400069f0
jmp 0x1400034cb
mov r8, r13
call fcn.140006968
cmp esi, dword [rbx - 0xc]
jg 0x1400034da
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], r15w
jmp 0x1400034ea
mov ecx, 0x80070057
call fcn.140001900
int3
mov qword [rsp + 0x38], rax
mov rdx, qword [rbp + 0x20]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140003503
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000351c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rbp + 0x58]
call fcn.1400051a0
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000353f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x30]
mov rax, qword [rbp - 0x48]
cmp dword [rax + 0xc], 0x3e9
jne 0x1400036cf
lea r8, [0x140018b60]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 8]
call fcn.140001380
nop
mov r13, qword [rax]
lea rcx, [r13 - 0x18]
mov rbx, qword [rsp + 0x38]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x1400036b2
cmp dword [rdi + 0x10], 0
jl 0x1400035b7
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400035b7
call fcn.140001a10
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x1400035ae
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [r8 + 8]
lea rax, [rbx + 0x18]
jmp 0x1400036ad
movsxd rsi, dword [r13 - 0x10]
test esi, esi
jne 0x140003615
mov rsi, qword [rdi]
cmp dword [rdi + 8], 0
je 0x1400036b2
cmp dword [rdi + 0x10], 0
jge 0x1400035f0
cmp dword [rbx - 0xc], 0
jge 0x1400035e3
mov ecx, 0x80070057
call fcn.140001900
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x1400036b2
lock add dword [rdi + 0x10], 0xffffffff
jg 0x140003603
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
add rax, 0x18
jmp 0x1400036ad
test r13, r13
jne 0x140003625
mov ecx, 0x80070057
call fcn.140001900
int3
mov eax, dword [rbx - 0x10]
mov dword [rsp + 0x40], eax
mov r12, r13
sub r12, rbx
sar r12, 1
test esi, esi
jns 0x140003644
mov ecx, 0x80070057
call fcn.140001900
int3
mov ecx, 1
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, esi
or eax, ecx
jge 0x140003666
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.1400044b0
mov rbx, qword [rsp + 0x38]
mov eax, dword [rsp + 0x40]
lea rdi, [rsi + rsi]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, rdi
add rdx, rdx
cmp r12, rax
ja 0x14000368b
lea r8, [rbx + r12*2]
call fcn.1400069f0
jmp 0x140003693
mov r8, r13
call fcn.140006968
cmp esi, dword [rbx - 0xc]
jg 0x1400036a2
mov dword [rbx - 0x10], esi
mov word [rdi + rbx], r15w
jmp 0x1400036b2
mov ecx, 0x80070057
call fcn.140001900
int3
mov qword [rsp + 0x38], rax
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400036ca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x28], 5
lea rax, [0x140018810]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
mov r8, rbx
lea rdx, str.Open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
cmp qword [rsp + 0x50], 0
je 0x140003747
mov rdi, r15
cmp qword [rsp + 0x58], r15
jbe 0x14000373c
nop dword [rax]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + rdi*8]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000372d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc rdi
cmp rdi, qword [rsp + 0x58]
jb 0x140003710
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140007050
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140003768
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140003768
mov ecx, 0x80070057
call fcn.140001900
nop
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x140003774
mov dword [rax], r15d
cmp qword [rbp - 0x78], 0
je 0x1400037b1
cmp qword [rbp - 0x70], 0
jbe 0x1400037a7
mov rax, qword [rbp - 0x78]
mov rdx, qword [rax + r15*8]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000379e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc r15
cmp r15, qword [rbp - 0x70]
jb 0x140003782
mov rcx, qword [rbp - 0x78]
call fcn.140007050
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400037cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400037e4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov rcx, qword [rbp + 0x6c0]
xor rcx, rsp
call fcn.140007bc0
lea r11, [rsp + 0x7d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret