Function at 0x18000ede0
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rbp, rcx
lea rdx, [rsp + 0x88]
call fcn.180003b50
nop
mov r8d, 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rbp + 0x70]
call fcn.18002b710
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x90]
mov rcx, rbp
call fcn.18000f090
nop
lea rdi, [0x18006c5a8]
or esi, 0xffffffff
cmp dword [rbp + 0x14], 0
je 0x18000ee79
mov r9, qword [rbp + 0x20]
mov r8, qword [rbp + 0x58]
lea rdx, str._s_s.lnk
lea rcx, [rsp + 0x80]
call fcn.180004360
jmp 0x18000ef2f
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x18006c738]
lea rdx, str.Share
lea rcx, [rsp + 0x40]
call fcn.1800163e0
nop
xor r8d, r8d
mov rdx, qword [rax]
lea rcx, [rsp + 0x98]
call fcn.18002d310
nop
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.180001f80
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000eee2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000ef01
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000eff8
mov r9, qword [rbp + 0x20]
mov r8, qword [rbp + 0x50]
lea rdx, str._s_s.lnk
lea rcx, [rsp + 0x80]
call fcn.180004360
mov qword [rsp + 0x20], rdi
mov rbx, qword [rsp + 0x80]
mov r9, rbx
mov r8, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rdx, rdi
mov rcx, qword [rbp + 0x40]
call fcn.180012220
xor r11d, r11d
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r11 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x38], rax
mov rcx, rbp
call fcn.180003a00
nop
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000efad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000efd0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000eff1
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov eax, 1
jmp 0x18000f060
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000f01b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000f03e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000f05e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret