Function at 0x1800047dc
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.1800590f8
test rax, rax
je 0x180004829
lea rcx, [rsp + 0x48]
mov qword [rax], rcx
jmp 0x18000482b
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 0x180004871
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800060a4
nop
lea rcx, [rsp + 0x48]
call fcn.180007a10
mov rcx, qword [rsp + 0x48]
call fcn.1800018ec
mov rax, rbx
jmp 0x180004bac
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 0x1800048a5
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.18000463c
nop
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x180004b55
cmp qword [rsp + 0x38], 0x138
jbe 0x1800048dc
lea rdx, [rsp + 0xf8]
mov rcx, rsi
call fcn.1800045c4
mov ebp, dword [rsp + 0xf8]
mov rsi, qword [rsp + 0x30]
jmp 0x1800048de
xor eax, eax
test eax, eax
je 0x180004b55
movsxd rax, dword [rsi + 0x3c]
test ebp, ebp
je 0x1800048f7
mov edx, dword [rax + rsi + 0x88]
jmp 0x1800048fb
mov edx, dword [rax + rsi + 0x78]
test edx, edx
jne 0x18000495b
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800060a4
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18000491d
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x18000492d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x18000493f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007a10
mov rcx, qword [rsp + 0x48]
call fcn.1800018ec
mov rax, rbx
jmp 0x180004bac
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call fcn.180004bc8
cmp eax, 0xffffffff
jne 0x1800049ca
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800060a4
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18000498c
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x18000499c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800049ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007a10
mov rcx, qword [rsp + 0x48]
call fcn.1800018ec
mov rax, rbx
jmp 0x180004bac
mov r12d, eax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [r12 + rsi + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.180004bc8
cmp eax, 0xffffffff
jne 0x180004a43
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800060a4
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004a05
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180004a15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180004a27
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007a10
mov rcx, qword [rsp + 0x48]
call fcn.1800018ec
mov rax, rbx
jmp 0x180004bac
mov ebp, eax
add rbp, rsi
xor r13d, r13d
cmp dword [r12 + rsi + 0x18], r13d
jbe 0x180004afc
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp]
mov rcx, qword [rsp + 0x30]
call fcn.180004bc8
cmp eax, 0xffffffff
je 0x180004aea
mov r14d, eax
add r14, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180004aea
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.180007324
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.180006180
nop
cmp qword [rsp + 0x98], 0x10
jb 0x180004aea
mov rcx, qword [rsp + 0x80]
call fcn.1800018ec
inc r13d
add rbp, 4
cmp r13d, dword [r12 + rsi + 0x18]
jb 0x180004a56
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800060a4
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004b1a
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180004b2a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180004b3c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007a10
mov rcx, qword [rsp + 0x48]
call fcn.1800018ec
mov rax, rbx
jmp 0x180004bac
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1800060a4
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004b73
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180004b83
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180004b95
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.180007a10
mov rcx, qword [rsp + 0x48]
call fcn.1800018ec
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