Function at 0x1800047e4
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.180058f28
test rax, rax
je 0x180004831
lea rcx, [rsp + 0x48]
mov qword [rax], rcx
jmp 0x180004833
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 0x180004879
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800060e0
nop
lea rcx, [rsp + 0x48]
call fcn.180007930
mov rcx, qword [rsp + 0x48]
call fcn.180058b34
mov rax, rbx
jmp 0x180004bb4
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 0x1800048ad
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.180004644
nop
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x180004b5d
cmp qword [rsp + 0x38], 0x138
jbe 0x1800048e4
lea rdx, [rsp + 0xf8]
mov rcx, rsi
call fcn.1800045cc
mov ebp, dword [rsp + 0xf8]
mov rsi, qword [rsp + 0x30]
jmp 0x1800048e6
xor eax, eax
test eax, eax
je 0x180004b5d
movsxd rax, dword [rsi + 0x3c]
test ebp, ebp
je 0x1800048ff
mov edx, dword [rax + rsi + 0x88]
jmp 0x180004903
mov edx, dword [rax + rsi + 0x78]
test edx, edx
jne 0x180004963
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800060e0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004925
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180004935
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180004947
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007930
mov rcx, qword [rsp + 0x48]
call fcn.180058b34
mov rax, rbx
jmp 0x180004bb4
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call fcn.180004bd0
cmp eax, 0xffffffff
jne 0x1800049d2
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800060e0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004994
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800049a4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800049b6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007930
mov rcx, qword [rsp + 0x48]
call fcn.180058b34
mov rax, rbx
jmp 0x180004bb4
mov r12d, eax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [r12 + rsi + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.180004bd0
cmp eax, 0xffffffff
jne 0x180004a4b
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800060e0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004a0d
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180004a1d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180004a2f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007930
mov rcx, qword [rsp + 0x48]
call fcn.180058b34
mov rax, rbx
jmp 0x180004bb4
mov ebp, eax
add rbp, rsi
xor r13d, r13d
cmp dword [r12 + rsi + 0x18], r13d
jbe 0x180004b04
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp]
mov rcx, qword [rsp + 0x30]
call fcn.180004bd0
cmp eax, 0xffffffff
je 0x180004af2
mov r14d, eax
add r14, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180004af2
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.180007360
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.1800061bc
nop
cmp qword [rsp + 0x98], 0x10
jb 0x180004af2
mov rcx, qword [rsp + 0x80]
call fcn.180058b34
inc r13d
add rbp, 4
cmp r13d, dword [r12 + rsi + 0x18]
jb 0x180004a5e
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800060e0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004b22
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180004b32
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180004b44
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007930
mov rcx, qword [rsp + 0x48]
call fcn.180058b34
mov rax, rbx
jmp 0x180004bb4
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800060e0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004b7b
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180004b8b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180004b9d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007930
mov rcx, qword [rsp + 0x48]
call fcn.180058b34
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