Function at 0x180003360
Capabilities:
Check if file exists

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov r13, rcx
mov dword [rsp + 0xc0], 0
cmp dword [rcx + 0x14], 0
je 0x1800037c2
mov rax, qword [rcx + 0x28]
cmp dword [rax - 0x10], 0
je 0x1800037c2
mov ecx, 0x38
call fcn.180034140
test rax, rax
je 0x1800033be
mov rcx, rax
call fcn.1800037e0
mov r14, rax
jmp 0x1800033c1
xor r14d, r14d
lea rax, [r13 + 0x20]
mov qword [rsp + 0x50], rax
mov rdx, qword [rax]
lea rcx, [rsp + 0x70]
call fcn.180013890
lea rdx, [rsp + 0x60]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
lea rax, [0x18006c2e0]
lea rcx, [rsp + 0x60]
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x18000340c
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
jne 0x18000340c
xor eax, eax
jmp 0x180003411
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1800037c7
lea rdx, [rsp + 0xd8]
mov rcx, r13
call fcn.180003e10
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov rdx, qword [rsp + 0xd8]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x18000345a
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
test ebx, ebx
je 0x1800037ba
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.180003e10
nop
lea rcx, [r14 + 0x20]
mov rdx, rax
call fcn.180001f80
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000349c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0xc8], rbx
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.180003f20
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x180003527
cmp dword [rbx + 0x10], 0
jl 0x180003515
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x180003515
call fcn.1800023a0
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x180003507
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.WS2_32.dll_htonl + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0xc8], rax
jmp 0x180003527
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0xc8]
call fcn.180002290
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180003546
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0xc8]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000379e
lea r12, [rbx - 0x18]
mov rsi, qword [r14 + 0x18]
sub rsi, 0x18
cmp r12, rsi
je 0x1800035be
cmp dword [rsi + 0x10], 0
jl 0x1800035ae
mov rax, qword [rsi]
cmp qword [r12], rax
jne 0x1800035ae
mov rcx, r12
call fcn.1800023a0
mov rbx, rax
mov ecx, edi
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1800035a4
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rreloc.WS2_32.dll_htonl + 8]
lea rax, [rbx + 0x18]
mov qword [r14 + 0x18], rax
jmp 0x1800035be
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [r14 + 0x18]
call fcn.180002290
mov eax, dword [rsp + 0x68]
mov dword [r14 + 8], eax
mov eax, dword [rsp + 0x6c]
mov r8d, dword [rsp + 0x64]
sub eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
mov dword [r14 + 0xc], eax
mov dword [r14], edi
mov dword [r14 + 4], edi
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xd0], rax
mov r8d, 5
lea rdx, [0x18006c480]
lea rcx, [rsp + 0xd0]
call fcn.180004360
lea rcx, [r14 + 0x28]
lea rdx, [r13 + 0x40]
call fcn.180001f80
add r13, 0x30
mov rcx, qword [r13]
cmp dword [rcx - 0x10], 0
jl 0x18000369f
lea rdx, [0x18006c488]
call fcn.18003452c
test rax, rax
je 0x18000369f
sub rax, qword [r13]
sar rax, 1
cmp eax, 0xffffffff
je 0x18000369f
mov rcx, qword [r13]
cmp dword [rcx - 0x10], 0
jge 0x180003662
mov eax, edi
jmp 0x18000367e
lea rdx, [0x18006c488]
call fcn.18003452c
test rax, rax
jne 0x180003677
mov eax, edi
jmp 0x18000367e
sub rax, qword [r13]
sar rax, 1
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.180001d70
mov r13, rax
mov ebx, 1
mov dword [rsp + 0xc0], ebx
jmp 0x1800036a6
mov ebx, dword [rsp + 0xc0]
mov rdx, r13
lea rcx, [r14 + 0x30]
call fcn.180001f80
nop
test bl, 1
je 0x1800036d7
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800036d7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea r8, [rsp + 0xd0]
lea rdx, str.__t
lea rcx, [rsp + 0x48]
call fcn.180004150
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [r14 + 0x30]
call fcn.180002500
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180003721
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [r14 + 0x10]
mov rdx, qword [rsp + 0x50]
call fcn.180001f80
xor r11d, r11d
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], r11d
mov r9, r14
lea r8, [0x18000fed0]
xor edx, edx
xor ecx, ecx
call fcn.1800269d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0xd0]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000377c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lock xadd dword [r12 + 0x10], edi
dec edi
test edi, edi
jg 0x180003797
mov rcx, qword [r12]
mov r8, qword [rcx]
mov rdx, r12
call qword [rreloc.WS2_32.dll_htonl + 8]
mov eax, 1
jmp 0x1800037c7
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x1800037b6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x1800037c7
xor eax, eax
jmp 0x1800037c7
mov eax, 1
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret