Function at 0x140001f70
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x448], rbx
mov rax, qword [0x14003d088]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov r12, r9
mov r15, rcx
xor esi, esi
mov r14d, esi
mov dword [rsp + 0x70], esi
call fcn.140005af0
mov rbx, rax
mov rdi, qword [r15]
cmp rax, rdi
je 0x140002012
add rax, 0x20
lea r8, [rax + 8]
cmove r8, rsi
lea r9, [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x140001fe5
mov r8, qword [r8]
lea rcx, [0x14003db68]
cmp qword [0x14003db80], 8
cmovae rcx, qword [0x14003db68]
mov r9, qword [r9]
mov rdx, qword [0x14003db78]
call fcn.140005cb0
shr eax, 0x1f
test al, al
je 0x140002015
mov rbx, rdi
cmp rbx, rdi
jne 0x1400025f2
lea rdi, [0x140036540]
mov qword [rbp + 0x40], rdi
lea r13, [0x140036538]
mov qword [rbp + 0x80], r13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x88], eax
mov qword [rbp + 0x60], 7
mov qword [rbp + 0x58], rsi
mov word [rbp + 0x48], si
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x70], rsi
mov qword [rbp + 0x78], rsi
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx + 0x80]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov qword [rbp - 0x10], rdi
mov qword [rbp + 0x30], r13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x38], eax
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], rsi
mov word [rbp - 8], si
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], rsi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov qword [rbp + 0x90], rdi
mov qword [rbp + 0xd0], r13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xd8], eax
mov qword [rbp + 0xb0], 7
mov qword [rbp + 0xa8], rsi
mov word [rbp + 0x98], si
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc8], rsi
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rbx, qword [0x14003e368]
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140036b98]
lea rcx, [0x14003db68]
call fcn.140003c00
cmp rax, 0xffffffffffffffff
jne 0x140002183
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x40]
call fcn.1400030d0
nop
mov r14d, 1
mov dword [rsp + 0x70], r14d
mov byte [rax + 8], r14b
mov rcx, qword [rax]
call fcn.140003e40
mov r8d, 0x104
mov rdx, qword [rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140002183
movzx ebx, r14b
jmp 0x140002185
xor bl, bl
test r14b, 1
je 0x140002194
lea rcx, [rbp - 0x78]
call fcn.140002cc0
test bl, bl
je 0x140002517
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x40]
call fcn.140002da0
nop
test rax, rax
je 0x1400021bf
lea rdx, [rax + 8]
lea rax, [rbp - 8]
cmp rax, rdx
je 0x1400021d3
jmp 0x1400021c2
mov rdx, rsi
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 8]
call fcn.140004ef0
nop
lea rcx, [rsp + 0x20]
call fcn.140001ee0
lea rdx, [0x14003db60]
lea rcx, [rbp - 0x10]
call fcn.140002ff0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x98]
call fcn.140004ef0
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000252e
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x40]
call fcn.140002da0
nop
test rax, rax
je 0x140002244
lea rdx, [rax + 8]
lea rax, [rbp - 8]
cmp rax, rdx
je 0x140002258
jmp 0x140002247
mov rdx, rsi
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 8]
call fcn.140004ef0
nop
lea rcx, [rsp + 0x20]
call fcn.140001ee0
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x60], r13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
mov r8d, 6
lea rdx, str.System
lea rcx, [rsp + 0x28]
call fcn.140005390
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rsp + rcx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x10]
call fcn.140002ff0
nop
lea rcx, [rsp + 0x20]
call fcn.140001ee0
lea rdx, [0x14003db60]
lea rcx, [rbp - 0x10]
call fcn.140002ff0
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000252e
lea rcx, [rsp + 0x20]
call fcn.140001c40
nop
lea rcx, [rax + 8]
cmp qword [rcx + 0x18], 8
jb 0x140002322
mov rcx, qword [rcx]
lea rbx, [0x140036b9c]
mov rax, rbx
test rcx, rcx
cmovne rax, rcx
mov rdx, rbx
test rax, rax
cmovne rdx, rax
cmp word [rdx], 0
jne 0x140002348
mov r8, rsi
jmp 0x14000235b
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140002350
lea rcx, [rbp - 8]
call fcn.140005390
nop
lea rcx, [rsp + 0x20]
call fcn.140001ee0
lea rdx, [0x140036478]
lea rcx, [rsp + 0x20]
call fcn.140003150
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x10]
call fcn.140002ff0
nop
lea rcx, [rsp + 0x20]
call fcn.140001ee0
lea rdx, [0x14003db60]
lea rcx, [rbp - 0x10]
call fcn.140002ff0
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000252e
lea rcx, [rsp + 0x20]
call fcn.140001c40
nop
lea rcx, [rax + 8]
cmp qword [rcx + 0x18], 8
jb 0x1400023e0
mov rcx, qword [rcx]
mov rax, rbx
test rcx, rcx
cmovne rax, rcx
test rax, rax
cmovne rbx, rax
cmp word [rbx], 0
jne 0x1400023fc
mov r8, rsi
jmp 0x14000240b
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140002400
mov rdx, rbx
lea rcx, [rbp - 8]
call fcn.140005390
nop
lea rcx, [rsp + 0x20]
call fcn.140001ee0
lea rdx, [0x140036478]
lea rcx, [rsp + 0x20]
call fcn.140003150
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x10]
call fcn.140002ff0
nop
lea rcx, [rsp + 0x20]
call fcn.140001ee0
lea rdx, str.DemoShield
lea rcx, [rsp + 0x20]
call fcn.140003150
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x10]
call fcn.140002ff0
nop
lea rcx, [rsp + 0x20]
call fcn.140001ee0
lea rdx, [0x14003db60]
lea rcx, [rbp - 0x10]
call fcn.140002ff0
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000252e
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x60], r13
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x20]
call fcn.140003ee0
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x60]
call fcn.140002660
nop
test rax, rax
je 0x1400024e1
lea rsi, [rax + 8]
lea rax, [rbp - 8]
cmp rax, rsi
je 0x1400024f5
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 8]
call fcn.140004ef0
nop
lea rcx, [rbp - 0x60]
call fcn.140001ee0
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000252e
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x14003db68]
lea rcx, [rbp - 8]
call fcn.140004ef0
lea rdx, [rbp + 0xe0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x10]
call fcn.140002da0
lea rcx, [rax + 8]
cmp qword [rcx + 0x18], 8
jb 0x14000255b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rbp - 0x60]
call fcn.140001ee0
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test rbx, rbx
jne 0x1400025ba
lea rcx, [rbp + 0x90]
call fcn.140001ee0
nop
lea rcx, [rbp - 0x10]
call fcn.140001ee0
nop
lea rcx, [rbp + 0x40]
call fcn.140001ee0
mov eax, 0x80040154
jmp 0x14000261e
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.140005e80
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x70], rbx
lea rcx, [rbp + 0x90]
call fcn.140001ee0
nop
lea rcx, [rbp - 0x10]
call fcn.140001ee0
nop
lea rcx, [rbp + 0x40]
call fcn.140001ee0
jmp 0x1400025f6
mov rbx, qword [rbx + 0x70]
lea rdx, str.DllGetClassObject
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400025b3
mov r8, r12
lea rdx, [0x140036b88]
lea rcx, [0x140036548]
call rax
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.14000d750
mov rbx, qword [rsp + 0x448]
add rsp, 0x400
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret