Function at 0x18028f0a0
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 - 0x20], r12
mov qword [rbp - 0x18], 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 0x18028f2f4
lea r13, [0x180660020]
mov r14d, 0xffffffff
nop word [rax + 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 + 0x58]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x18028f14b
cmp eax, 0xffffffff
je 0x18028f14b
test byte [rdi + 0x50], 8
je 0x18028f26f
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x18028f19d
mov rax, qword [rcx]
lea rdx, [rbp + 0x48]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test al, al
jne 0x18028f19d
jmp 0x18028f26f
test byte [rdi + 0x50], 4
je 0x18028f26f
mov rax, qword [rbp + 0x48]
cmp byte [rax], 0
je 0x18028f26f
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x60]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x18028f26f
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x18028f19d
mov rax, qword [rcx]
lea rdx, [rbp + 0x48]
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x18028f26f
lea rbx, [rdi + 0x60]
test r15b, r15b
je 0x18028f1c6
mov rcx, rbx
call fcn.180009780
cmp dword [rbx + 8], 0
je 0x18028f1bf
mov rcx, qword [rbx]
call fcn.180124068
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 0x18028f1eb
mov ecx, eax
test eax, eax
jns 0x18028f1d9
lea ecx, [rax + 1]
sar ecx, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
mov rcx, rbx
call fcn.18000c670
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 0x18028f213
lock inc dword [rax]
lea r8, [rdi + 0x58]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x48]
call fcn.18018aa60
mov rbx, rax
mov edx, dword [rbp - 0x14]
inc edx
cmp edx, dword [rbp - 0x18]
jle 0x18028f24d
mov ecx, edx
test edx, edx
jns 0x18028f23a
lea ecx, [rdx + 1]
sar ecx, 1
add edx, 8
add edx, ecx
and edx, 0xfffffff8
lea rcx, [rbp - 0x20]
call fcn.18000c670
movsxd rcx, dword [rbp - 0x14]
lea eax, [rcx + 1]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 0x20]
lea rdx, [rax + rcx*8]
mov rax, qword [rbx]
mov qword [rdx], rax
lea rax, [0x180660030]
mov qword [rbx], rax
mov rcx, qword [rbp + 0x48]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x18028f28f
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18028f28f
call fcn.18011d9c0
inc esi
mov rcx, qword [rdi + 0x90]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
cmp esi, eax
jl 0x18028f0f0
cmp dword [rbp - 0x14], 0
jle 0x18028f2f4
lea r8, [0x1803b39fc]
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x20]
call fcn.180176d40
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rdi + 0x280]
call fcn.180243320
nop
mov rcx, qword [rbp + 0x48]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x18028f2f4
lock xadd dword [rcx], r14d
dec r14d
cmp r14d, 0xffffffff
jne 0x18028f2f4
call fcn.18011d9c0
lea rcx, [rdi - 0xe8]
call fcn.18028f340
nop
lea rcx, [rbp - 0x20]
call fcn.180009780
mov rcx, qword [rbp - 0x20]
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
jmp fcn.180124068