Function at 0x180233ce0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov r12, rdx
mov rdi, rcx
lea r13, [0x1802bccb0]
or esi, 0xffffffff
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x180233f9c
lea rcx, [rbp + 0x77]
call fcn.1800e7430
nop
lea rdx, [rbp + 0x77]
lea rcx, [rbp + 0x17]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x180233d52
cmp eax, 0xffffffff
jne 0x180233d8c
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0x77]
call fcn.1800e6c30
mov rcx, qword [rbp + 0x77]
mov rdx, qword [rax]
mov qword [rbp + 0x77], rdx
mov qword [rax], rcx
mov rcx, qword [rbp - 0x21]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x180233d8c
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180233d8c
call fcn.1800a0c6c
mov rax, qword [rbp + 0x77]
cmp byte [rax], 0
je 0x180233f72
lea rdx, [rbp + 0x77]
lea rcx, [rbp + 7]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180233f72
mov rbx, qword [rbp + 0x77]
mov qword [rbp + 0x7f], rbx
lea r14, [rbx - 0x10]
mov r15d, 1
cmp r14, r13
je 0x180233ddb
mov eax, r15d
lock xadd dword [r14], eax
mov rbx, qword [rbp + 0x77]
mov r8b, 1
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.180233fe0
nop
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.1800e7430
mov rdi, qword [rbp - 0x39]
cmp rbx, rdi
jne 0x180233e04
xor eax, eax
jmp 0x180233e19
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x29], rbx
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
call fcn.180019ca0
test eax, eax
sete bl
lea rcx, [rdi - 0x10]
cmp rcx, r13
je 0x180233e3a
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180233e3a
call fcn.1800a0c6c
nop
mov rcx, qword [rbp - 9]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x180233e59
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180233e59
call fcn.1800a0c6c
test bl, bl
je 0x180233e98
lea rax, [0x1802bff8b]
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x49]
call fcn.18001a440
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x7f], rax
cmp r14, r13
je 0x180233e98
mov eax, esi
lock xadd dword [r14], eax
dec eax
cmp eax, 0xffffffff
jne 0x180233e98
mov rcx, r14
call fcn.1800a0c6c
mov rbx, qword [rbp + 0x7f]
add rbx, 0xfffffffffffffff0
cmp rbx, r13
je 0x180233eac
mov eax, r15d
lock xadd dword [rbx], eax
mov rcx, qword [rbp + 0x7f]
xchg qword [0x1804172a0], rcx
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x180233ed2
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180233ed2
call fcn.1800a0c6c
cmp dword [reloc.WS2_32.dll_accept], 2
jne 0x180233f3a
mov rax, qword [0x180417278]
mov rdi, qword [rbp + 0x7f]
cmp rax, rdi
je 0x180233f3a
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x31]
call fcn.18001b990
test eax, eax
je 0x180233f3a
cmp rbx, r13
je 0x180233f12
lock xadd dword [rbx], r15d
mov rdi, qword [rbp + 0x7f]
xchg qword [0x180417278], rdi
lea rcx, [rdi - 0x10]
cmp rcx, r13
je 0x180233f34
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180233f34
call fcn.1800a0c6c
call fcn.1801e6f80
nop
cmp rbx, r13
je 0x180233f55
mov eax, esi
lock xadd dword [rbx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180233f55
mov rcx, rbx
call fcn.1800a0c6c
nop
cmp r14, r13
je 0x180233f9c
mov eax, esi
lock xadd dword [r14], eax
dec eax
cmp eax, 0xffffffff
jne 0x180233f9c
mov rcx, r14
call fcn.1800a0c6c
jmp 0x180233f9c
mov rcx, qword [rbp + 0x77]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x180233f92
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180233f92
call fcn.1800a0c6c
nop
mov rax, qword [r12]
mov qword [rbp + 0xf], rax
jmp 0x180233fa4
mov rax, qword [r12]
mov qword [rbp + 0x1f], rax
lea rcx, [rax - 0x10]
cmp rcx, r13
je 0x180233fbe
lock xadd dword [rcx], esi
lea eax, [rsi - 1]
cmp eax, 0xffffffff
jne 0x180233fbe
call fcn.1800a0c6c
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret