Function at 0x180004594
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.180054d48
test rax, rax
je 0x1800045e1
lea rcx, [rsp + 0x48]
mov qword [rax], rcx
jmp 0x1800045e3
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 0x180004629
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180005e5c
nop
lea rcx, [rsp + 0x48]
call fcn.1800075ac
mov rcx, qword [rsp + 0x48]
call fcn.180054958
mov rax, rbx
jmp 0x180004964
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 0x18000465d
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1800043f4
nop
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x18000490d
cmp qword [rsp + 0x38], 0x138
jbe 0x180004694
lea rdx, [rsp + 0xf8]
mov rcx, rsi
call fcn.18000437c
mov ebp, dword [rsp + 0xf8]
mov rsi, qword [rsp + 0x30]
jmp 0x180004696
xor eax, eax
test eax, eax
je 0x18000490d
movsxd rax, dword [rsi + 0x3c]
test ebp, ebp
je 0x1800046af
mov edx, dword [rax + rsi + 0x88]
jmp 0x1800046b3
mov edx, dword [rax + rsi + 0x78]
test edx, edx
jne 0x180004713
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180005e5c
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800046d5
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800046e5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800046f7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.1800075ac
mov rcx, qword [rsp + 0x48]
call fcn.180054958
mov rax, rbx
jmp 0x180004964
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call fcn.180004980
cmp eax, 0xffffffff
jne 0x180004782
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180005e5c
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004744
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180004754
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180004766
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.1800075ac
mov rcx, qword [rsp + 0x48]
call fcn.180054958
mov rax, rbx
jmp 0x180004964
mov r12d, eax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [r12 + rsi + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.180004980
cmp eax, 0xffffffff
jne 0x1800047fb
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180005e5c
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800047bd
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800047cd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800047df
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.1800075ac
mov rcx, qword [rsp + 0x48]
call fcn.180054958
mov rax, rbx
jmp 0x180004964
mov ebp, eax
add rbp, rsi
xor r13d, r13d
cmp dword [r12 + rsi + 0x18], r13d
jbe 0x1800048b4
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp]
mov rcx, qword [rsp + 0x30]
call fcn.180004980
cmp eax, 0xffffffff
je 0x1800048a2
mov r14d, eax
add r14, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1800048a2
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.180006ec0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.180005f38
nop
cmp qword [rsp + 0x98], 0x10
jb 0x1800048a2
mov rcx, qword [rsp + 0x80]
call fcn.180054958
inc r13d
add rbp, 4
cmp r13d, dword [r12 + rsi + 0x18]
jb 0x18000480e
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180005e5c
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800048d2
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800048e2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800048f4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.1800075ac
mov rcx, qword [rsp + 0x48]
call fcn.180054958
mov rax, rbx
jmp 0x180004964
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180005e5c
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18000492b
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x18000493b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x18000494d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.1800075ac
mov rcx, qword [rsp + 0x48]
call fcn.180054958
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