Function at 0x1800397c0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xd0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x18009a658]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rsi, rdx
mov r12, rcx
mov ecx, 8
call fcn.180054d48
xor r14d, r14d
cmp rax, r14
je 0x18003981a
lea rcx, [rsp + 0x30]
mov qword [rax], rcx
jmp 0x18003981d
mov rax, r14
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.180007620
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r14
mov r13, qword [rsi + 0x28]
mov rbp, qword [r13]
mov rsi, qword [rsi]
cmp rsi, r14
je 0x18003984b
cmp rsi, rsi
je 0x180039850
call fcn.180054d28
cmp rbp, r13
je 0x18003990c
cmp rsi, r14
jne 0x180039868
call fcn.180054d28
mov r11, r14
jmp 0x18003986b
mov r11, qword [rsi]
cmp rbp, qword [r11 + 0x28]
jne 0x180039876
call fcn.180054d28
cmp qword [rbp + 0x30], 8
jb 0x180039883
mov rcx, qword [rbp + 0x18]
jmp 0x180039887
lea rcx, [rbp + 0x18]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, r14d
je 0x1800398e6
cmp rsi, r14
jne 0x1800398a1
call fcn.180054d28
mov r11, r14
jmp 0x1800398a4
mov r11, qword [rsi]
cmp rbp, qword [r11 + 0x28]
jne 0x1800398af
call fcn.180054d28
mov rdi, qword [rsp + 0x58]
lea r9, [rbp + 0x10]
mov r8, qword [rdi + 8]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180008ce4
mov rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.180008d80
mov qword [rdi + 8], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rbx
cmp rsi, r14
jne 0x1800398f5
call fcn.180054d28
mov r11, r14
jmp 0x1800398f8
mov r11, qword [rsi]
cmp rbp, qword [r11 + 0x28]
jne 0x180039903
call fcn.180054d28
mov rbp, qword [rbp]
jmp 0x180039841
cmp qword [rsp + 0x60], r14
jne 0x18003991d
mov ebx, 0x44e
jmp 0x180039aff
xor edx, edx
mov rcx, r12
call fcn.180001de8
mov rcx, r12
call fcn.180002920
mov r9, r12
lea r8, [0x18007ee28]
lea rdx, str.__s__a___s_
lea rcx, [rsp + 0x98]
call fcn.180005248
nop
mov rsi, qword [rsp + 0x58]
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
mov rbp, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbp
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
cmp rdi, r14
je 0x180039984
cmp rdi, rbp
je 0x180039989
call fcn.180054d28
cmp rbx, rsi
je 0x180039a24
cmp rdi, r14
jne 0x1800399a1
call fcn.180054d28
mov r11, r14
jmp 0x1800399a4
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x1800399af
call fcn.180054d28
cmp qword [rbx + 0x30], 8
jb 0x1800399bc
mov r8, qword [rbx + 0x18]
jmp 0x1800399c0
lea r8, [rbx + 0x18]
lea rdx, str.___s_
lea rcx, [rsp + 0x68]
call fcn.180005248
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.180008398
nop
cmp qword [rsp + 0x88], 8
jb 0x1800399ff
mov rcx, qword [rsp + 0x70]
call fcn.180054958
cmp rdi, r14
jne 0x180039a0e
call fcn.180054d28
mov r11, r14
jmp 0x180039a11
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x28]
jne 0x180039a1c
call fcn.180054d28
mov rbx, qword [rbx]
jmp 0x18003997a
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, 7
cmp rax, r14
je 0x180039a6c
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rcx, rax
lea rdx, [0x18007e7d8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r14d
jne 0x180039a6c
mov r8, rdi
lea rdx, str.__md1M
lea rcx, [rsp + 0x98]
call fcn.1800084c8
mov qword [rsp + 0x88], sendto
mov qword [rsp + 0x80], r14
mov byte [rsp + 0x70], r14b
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rcx, qword [rsp + 0xa0]
lea rdx, [rsp + 0x68]
call fcn.18003923c
mov ebx, eax
cmp qword [rsp + 0x88], 0x10
jb 0x180039ac0
mov rcx, qword [rsp + 0x70]
call fcn.180054958
cmp ebx, r14d
je 0x180039ace
mov rcx, r12
call fcn.180002920
nop
cmp qword [rsp + 0xb8], 8
jb 0x180039ae6
mov rcx, qword [rsp + 0xa0]
call fcn.180054958
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xb0], r14
mov word [rsp + 0xa0], r14w
lea rcx, [rsp + 0x30]
call fcn.180008c64
mov rcx, qword [rsp + 0x58]
call fcn.180054958
mov qword [rsp + 0x58], r14
mov rcx, qword [rsp + 0x30]
call fcn.180054958
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180055580
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret