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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
lea rdi, [rsp + 0x20]
mov ecx, 0x9c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2a0]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rax, qword [rsp + 0x2b8]
mov byte [rax], 0
mov rax, qword [rsp + 0x2c0]
mov byte [rax], 0
mov eax, reloc.WSOCK32.dll_recv
imul rax, rax, 0
lea rcx, [0x140325518]
cmp qword [rcx + rax], 0
jne 0x1400895c8
lea rdx, [0x140325518]
mov rcx, qword [rsp + 0x2a0]
call fcn.140089d30
cmp qword [rsp + 0x2b0], 0
jne 0x1400895e8
mov rcx, qword [rsp + 0x2a8]
call fcn.1401ea000
mov qword [rsp + 0x2b0], rax
cmp qword [rsp + 0x2b0], 0xfd
jbe 0x1400895fb
jmp 0x140089834
mov rax, qword [rsp + 0x2a8]
mov qword [rsp + 0x258], rax
mov rax, qword [rsp + 0x2b0]
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x268], 0
jmp 0x140089638
mov eax, dword [rsp + 0x268]
inc eax
mov dword [rsp + 0x268], eax
cmp dword [rsp + 0x268], 2
jge 0x140089834
mov dword [rsp + 0x20], 0
jmp 0x14008965a
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 3
jge 0x1400897a1
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
lea rcx, [0x140325518]
mov rax, qword [rcx + rax]
movzx eax, word [rax]
test eax, eax
jne 0x140089682
jmp 0x140089650
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
lea rcx, [0x140325518]
movsxd rdx, dword [rsp + 0x20]
imul rdx, rdx, 0x10
lea r8, [0x140325518]
mov rdx, qword [r8 + rdx + 8]
mov rax, qword [rcx + rax]
lea rax, [rax + rdx*2]
mov r8, qword [rsp + 0x260]
mov rdx, qword [rsp + 0x258]
mov rcx, rax
call fcn.14001e9a0
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x260]
lea rax, [rax + rcx*2]
lea rdx, [0x140280540]
mov rcx, rax
call fcn.1401e8a70
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
lea rcx, [0x140325518]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x14008971c
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
je 0x140089721
jmp 0x140089650
mov rax, qword [rsp + 0x2c0]
mov byte [rax], 1
mov rax, qword [0x14031a1e8]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x270], rax
mov rax, qword [0x14031a1e8]
mov qword [rax + 0x28], 0
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x10
lea rcx, [0x140325518]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rcx + rax]
mov rcx, qword [rsp + 0x2a0]
call fcn.140090040
test eax, eax
jne 0x140089784
mov rax, qword [rsp + 0x2b8]
mov byte [rax], 1
mov rax, qword [0x14031a1e8]
mov rcx, qword [rsp + 0x270]
mov qword [rax + 0x28], rcx
jmp 0x140089834
mov dx, 0x5f
mov rcx, qword [rsp + 0x2a8]
call fcn.14000f740
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400897c1
jmp 0x140089834
mov rax, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x260], rax
cmp qword [rsp + 0x260], 0xfe
jb 0x1400897ef
jmp 0x140089834
lea rax, [rsp + 0x50]
mov qword [rsp + 0x258], rax
mov r8, qword [rsp + 0x260]
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x258]
call fcn.14001e9a0
xor eax, eax
mov rcx, qword [rsp + 0x258]
mov rdx, qword [rsp + 0x260]
mov word [rcx + rdx*2], ax
jmp 0x140089628
mov rcx, rsp
lea rdx, [0x14028b000]
call fcn.140134a00
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140135520
add rsp, 0x290
pop rdi
ret