Function at 0x180037654
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.180042b10
test rax, rax
je 0x1800376a1
lea rcx, [rsp + 0x48]
mov qword [rax], rcx
jmp 0x1800376a3
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 0x1800376df
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.18000c41c
nop
lea rcx, [rsp + 0x48]
call fcn.1800027f8
mov rax, rbx
jmp 0x1800379e8
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 0x180037713
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1800374b4
nop
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x18003799b
cmp qword [rsp + 0x38], 0x138
jbe 0x18003774a
lea rdx, [rsp + 0xf8]
mov rcx, rsi
call fcn.18003743c
mov ebp, dword [rsp + 0xf8]
mov rsi, qword [rsp + 0x30]
jmp 0x18003774c
xor eax, eax
test eax, eax
je 0x18003799b
movsxd rax, dword [rsi + 0x3c]
test ebp, ebp
je 0x180037765
mov edx, dword [rax + rsi + 0x88]
jmp 0x180037769
mov edx, dword [rax + rsi + 0x78]
test edx, edx
jne 0x1800377bf
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.18000c41c
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18003778b
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x18003779b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800377ad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.1800027f8
mov rax, rbx
jmp 0x1800379e8
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call fcn.180037a04
cmp eax, 0xffffffff
jne 0x180037824
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.18000c41c
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800377f0
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180037800
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180037812
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.1800027f8
mov rax, rbx
jmp 0x1800379e8
mov r12d, eax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [r12 + rsi + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.180037a04
cmp eax, 0xffffffff
jne 0x180037893
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.18000c41c
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18003785f
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x18003786f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180037881
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.1800027f8
mov rax, rbx
jmp 0x1800379e8
mov ebp, eax
add rbp, rsi
xor r13d, r13d
cmp dword [r12 + rsi + 0x18], r13d
jbe 0x18003794c
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp]
mov rcx, qword [rsp + 0x30]
call fcn.180037a04
cmp eax, 0xffffffff
je 0x18003793a
mov r14d, eax
add r14, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x18003793a
mov qword [rsp + 0x98], socket
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.180002e60
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.180002874
nop
cmp qword [rsp + 0x98], 0x10
jb 0x18003793a
mov rcx, qword [rsp + 0x80]
call fcn.180042a14
inc r13d
add rbp, 4
cmp r13d, dword [r12 + rsi + 0x18]
jb 0x1800378a6
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.18000c41c
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18003796a
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x18003797a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x18003798c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.1800027f8
mov rax, rbx
jmp 0x1800379e8
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.18000c41c
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800379b9
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800379c9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800379db
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.1800027f8
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