Function at 0x180004850
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xb0
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rdi, rdx
mov rbx, rcx
and dword [rsp + 0xf8], 0
mov ecx, 8
call fcn.1800592c8
test rax, rax
je 0x18000489d
lea rcx, [rsp + 0x48]
mov qword [rax], rcx
jmp 0x18000489f
xor eax, eax
mov qword [rsp + 0x48], rax
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
and qword [rsp + 0x70], 0
test rdi, rdi
jne 0x1800048e5
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180005fdc
nop
lea rcx, [rsp + 0x48]
call fcn.180007858
mov rcx, qword [rsp + 0x48]
call fcn.180058ed8
mov rax, rbx
jmp 0x180004c20
xor ebp, ebp
mov dword [rsp + 0xf8], ebp
or qword [rsp + 0x20], 0xffffffffffffffff
and qword [rsp + 0x28], rbp
and qword [rsp + 0x30], rbp
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180004919
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1800046b0
nop
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x180004bc9
cmp qword [rsp + 0x38], 0x138
jbe 0x180004950
lea rdx, [rsp + 0xf8]
mov rcx, rsi
call fcn.180004638
mov ebp, dword [rsp + 0xf8]
mov rsi, qword [rsp + 0x30]
jmp 0x180004952
xor eax, eax
test eax, eax
je 0x180004bc9
movsxd rax, dword [rsi + 0x3c]
test ebp, ebp
je 0x18000496b
mov edx, dword [rax + rsi + 0x88]
jmp 0x18000496f
mov edx, dword [rax + rsi + 0x78]
test edx, edx
jne 0x1800049cf
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180005fdc
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004991
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800049a1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800049b3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007858
mov rcx, qword [rsp + 0x48]
call fcn.180058ed8
mov rax, rbx
jmp 0x180004c20
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call fcn.180004c3c
cmp eax, 0xffffffff
jne 0x180004a3e
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180005fdc
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004a00
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180004a10
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180004a22
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007858
mov rcx, qword [rsp + 0x48]
call fcn.180058ed8
mov rax, rbx
jmp 0x180004c20
mov r12d, eax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [r12 + rsi + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.180004c3c
cmp eax, 0xffffffff
jne 0x180004ab7
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180005fdc
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004a79
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180004a89
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180004a9b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007858
mov rcx, qword [rsp + 0x48]
call fcn.180058ed8
mov rax, rbx
jmp 0x180004c20
mov ebp, eax
add rbp, rsi
xor r13d, r13d
cmp dword [r12 + rsi + 0x18], r13d
jbe 0x180004b70
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp]
mov rcx, qword [rsp + 0x30]
call fcn.180004c3c
cmp eax, 0xffffffff
je 0x180004b5e
mov r14d, eax
add r14, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180004b5e
mov qword [rsp + 0x98], sendto
and qword [rsp + 0x90], 0
mov byte [rsp + 0x80], al
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.180007288
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.1800060b8
nop
cmp qword [rsp + 0x98], 0x10
jb 0x180004b5e
mov rcx, qword [rsp + 0x80]
call fcn.180058ed8
inc r13d
add rbp, 4
cmp r13d, dword [r12 + rsi + 0x18]
jb 0x180004aca
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180005fdc
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004b8e
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180004b9e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180004bb0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007858
mov rcx, qword [rsp + 0x48]
call fcn.180058ed8
mov rax, rbx
jmp 0x180004c20
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180005fdc
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004be7
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180004bf7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180004c09
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007858
mov rcx, qword [rsp + 0x48]
call fcn.180058ed8
mov rax, rbx
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret