Function at 0x18001f880
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1800eb530]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor edi, edi
mov ebx, ecx
mov qword [rsp + 0x48], rdi
mov r15d, edi
mov r14d, edi
test ecx, ecx
jne 0x18001f9df
mov ecx, 0x42ea
call fcn.18001d510
test eax, eax
je 0x18001f9ab
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x20a
call fcn.180069a50
lea rcx, [rsp + 0x70]
call fcn.18001b780
cmp di, word [rsp + 0x70]
je 0x18001f9ab
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001f9ab
test al, 0x10
je 0x18001f9ab
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], di
jne 0x18001f924
inc rbx
mov ecx, 0x40
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x18001f9df
test rbx, rbx
je 0x18001f99e
cmp rbx, 0x7fffffff
ja 0x18001f99b
mov edx, 0x7ffffffe
lea r8, [rsp + 0x70]
sub rdx, rbx
mov rcx, rax
sub r8, rax
nop dword [rax]
lea rax, [rdx + rbx]
test rax, rax
je 0x18001f990
movzx eax, word [r8 + rcx]
test ax, ax
je 0x18001f990
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x18001f970
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
jmp 0x18001f9e1
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x50], 0x20
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x1770
call fcn.18001d510
test eax, eax
jne 0x18001fa07
lea ecx, [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.180066e00
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [0x1800ec210]
test rax, rax
jne 0x18001fa2d
xor edx, edx
lea rcx, [0x1800c7df0]
call fcn.18001d740
mov qword [0x1800ec210], rax
test rax, rax
je 0x18001f9df
cmp qword [0x1800ec238], rdi
jne 0x18001fa59
lea rdx, [0x1800c7e60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800ec238], rax
test rax, rax
je 0x18001f9df
mov rax, qword [0x1800ec210]
cmp qword [0x1800ec248], rdi
jne 0x18001fa89
lea rdx, [0x1800c7e80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800ec248], rax
test rax, rax
je 0x18001f9df
mov rax, qword [0x1800ec210]
cmp qword [0x1800ec240], rdi
jne 0x18001fab2
lea rdx, [0x1800c7e40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800ec240], rax
test rax, rax
je 0x18001f9df
lea r8, [rsp + 0x50]
mov ecx, ebx
lea rdx, [rsp + 0x48]
call fcn.18001b3f0
test eax, eax
je 0x18001f9df
mov dword [rsp + 0x38], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
mov qword [rsp + 0x2c8], r12
lea r8, [0x1800cf368]
mov r12, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x28], edi
mov rcx, r12
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], edi
call qword [0x1800ec238]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18001fcae
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x18001fcae
mov ecx, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
mov dword [rsp + 0x38], edi
lea r8, [0x1800cf368]
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x28], ecx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [0x1800ec238]
test eax, eax
je 0x18001fcae
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], edi
mov rcx, r15
call qword [0x1800ec248]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18001fcae
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x18001fcae
mov ecx, dword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x28], rdi
xor r8d, r8d
mov dword [rsp + 0x20], ecx
xor edx, edx
mov rcx, r15
call qword [0x1800ec248]
test eax, eax
je 0x18001fcae
mov edx, 0x5c
mov rcx, r14
call fcn.18006a2d8
lea rsi, [rax + 2]
test rax, rax
jne 0x18001fbf7
mov rsi, r14
sub rsi, r14
sar rsi, 1
sub rsi, 1
js 0x18001fcae
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [r14 + rbx*2], di
jne 0x18001fc10
cmp rsi, rbx
mov ecx, 0x40
cmovb rbx, rsi
inc rbx
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r8, rax
test rax, rax
je 0x18001fcae
test rbx, rbx
je 0x18001fc9f
cmp rbx, 0x7fffffff
jbe 0x18001fc4e
mov word [rax], di
jmp 0x18001fc9f
mov edx, 0x7ffffffe
cmp rsi, rdx
jbe 0x18001fc5d
mov word [rax], di
jmp 0x18001fc9f
sub rsi, rbx
mov rdx, r14
sub rdx, r8
mov rcx, r8
nop dword [rax]
lea rax, [rsi + rbx]
test rax, rax
je 0x18001fc8f
movzx eax, word [rdx + rcx]
test ax, ax
je 0x18001fc8f
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x18001fc70
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
jne 0x18001fcab
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8, rdi
mov rdi, r8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r12, r12
je 0x18001fcce
mov rcx, r12
call qword [0x1800ec240]
mov r12, qword [rsp + 0x2c8]
test rdi, rdi
je 0x18001fce3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x18001f9e1