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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x58
mov rdi, rcx
xor r12d, r12d
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
mov r15b, 1
mov esi, r12d
mov rcx, qword [rcx + 0x90]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test eax, eax
jle 0x1402261b4
lea r13, [0x140592ec8]
lea r14d, [r12 - 1]
nop dword [rax]
mov rcx, qword [rdi + 0x90]
mov rax, qword [rcx]
mov r8d, esi
lea rdx, [rbp + 0x48]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x60]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x14022600b
cmp eax, 0xffffffff
je 0x14022600b
test byte [rdi + 0x50], 8
je 0x14022612f
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14022605d
mov rax, qword [rcx]
lea rdx, [rbp + 0x48]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test al, al
jne 0x14022605d
jmp 0x14022612f
test byte [rdi + 0x50], 4
je 0x14022612f
mov rax, qword [rbp + 0x48]
cmp byte [rax], 0
je 0x14022612f
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x28]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x14022612f
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14022605d
mov rax, qword [rcx]
lea rdx, [rbp + 0x48]
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x14022612f
lea rbx, [rdi + 0x60]
test r15b, r15b
je 0x140226086
mov rcx, rbx
call fcn.140003220
cmp dword [rbx + 8], 0
je 0x14022607f
mov rcx, qword [rbx]
call fcn.1400d4bdc
mov qword [rbx], r12
mov dword [rbx + 8], r12d
xor r15b, r15b
mov eax, dword [rbx + 0xc]
inc eax
cmp eax, dword [rbx + 8]
jle 0x1402260ab
mov ecx, eax
test eax, eax
jns 0x140226099
lea ecx, [rax + 1]
sar ecx, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
mov rcx, rbx
call fcn.140017ba0
movsxd rcx, dword [rbx + 0xc]
lea eax, [rcx + 1]
mov dword [rbx + 0xc], eax
mov rax, qword [rbx]
lea rdx, [rax + rcx*8]
mov rax, qword [rbp + 0x48]
mov qword [rdx], rax
mov rax, qword [rbp + 0x48]
add rax, 0xfffffffffffffff0
cmp rax, r13
je 0x1402260d3
lock inc dword [rax]
lea r8, [rdi + 0x58]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x48]
call fcn.140142550
mov rbx, rax
mov edx, dword [rbp - 0xc]
inc edx
cmp edx, dword [rbp - 0x10]
jle 0x14022610d
mov ecx, edx
test edx, edx
jns 0x1402260fa
lea ecx, [rdx + 1]
sar ecx, 1
add edx, 8
add edx, ecx
and edx, 0xfffffff8
lea rcx, [rbp - 0x18]
call fcn.140017ba0
movsxd rcx, dword [rbp - 0xc]
lea eax, [rcx + 1]
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 0x18]
lea rdx, [rax + rcx*8]
mov rax, qword [rbx]
mov qword [rdx], rax
lea rax, [0x140592ed8]
mov qword [rbx], rax
mov rcx, qword [rbp + 0x48]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x14022614f
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14022614f
call fcn.1400c9d7c
inc esi
mov rcx, qword [rdi + 0x90]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
cmp esi, eax
jl 0x140225fb0
cmp dword [rbp - 0xc], 0
jle 0x1402261b4
lea r8, [0x1404fe190]
lea rdx, [rbp + 0x58]
lea rcx, [rbp - 0x18]
call fcn.14012f500
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rdi + 0x280]
call fcn.1401daa60
nop
mov rcx, qword [rbp + 0x58]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x1402261b4
lock xadd dword [rcx], r14d
dec r14d
cmp r14d, 0xffffffff
jne 0x1402261b4
call fcn.1400c9d7c
lea rcx, [rdi - 0xe8]
call fcn.140226200
nop
lea rcx, [rbp - 0x18]
call fcn.140003220
mov rcx, qword [rbp - 0x18]
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
jmp fcn.1400d4bdc