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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x140a630a8]
xor rax, rsp
mov qword [rbp + 0x430], rax
movzx r12d, r8b
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.14006cee0
mov ebx, eax
xor r13d, r13d
test eax, eax
js 0x14006becc
lea ecx, [rbx + 1]
cmp word [rsi + rcx*2], r13w
je 0x14006becc
lea r14, [rbx + rbx]
lea rdx, [rsi + r14]
lea rcx, [rsp + 0x30]
call fcn.140067f20
nop
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140067f20
nop
cmp ebx, dword [rsp + 0x28]
jae 0x14006bc62
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x20]
mov word [r14 + rax], r13w
mov eax, dword [rsp + 0x38]
cmp eax, 6
jbe 0x14006bc8a
mov ecx, eax
mov rax, qword [rsp + 0x30]
add rax, 0xfffffffffffffff4
lea rcx, [rax + rcx*2]
lea rdx, str.:_DATA
call fcn.1400693e0
test al, al
jne 0x14006bc9b
lea rdx, str.:_DATA
lea rcx, [rsp + 0x30]
call fcn.140068390
mov rcx, qword [rsp + 0x20]
call fcn.14006d670
mov rdx, qword [rsp + 0x20]
test al, al
je 0x14006bcf8
cmp ebx, 2
je 0x14006bcbf
cmp ebx, 3
jne 0x14006bcf8
cmp word [rdx + 4], 0x5c
jne 0x14006bcf8
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov dword [rdi + 0x20], r13d
mov word [rdi + 0x24], 0
lea rcx, [rdi + 0x28]
mov dword [rcx + 8], r13d
mov rax, qword [rcx]
mov word [rax], r13w
cmp ebx, 2
jne 0x14006bd0c
lea rdx, [rsp + 0x20]
call fcn.140067fe0
jmp 0x14006bd0c
movzx r8d, r12b
mov rcx, rdi
call fcn.14006bbd0
test al, al
je 0x14006beb7
and dword [rdi + 0x20], 0xfffffbef
mov qword [rdi], r13
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140067cc0
nop
lea rcx, [rsp + 0x40]
call fcn.140067fa0
nop
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14006bd73
mov rax, qword [0x140a67c78]
test rax, rax
je 0x14006be48
lea rdx, [rsp + 0x70]
call rax
test eax, eax
je 0x14006be53
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x78]
jmp 0x14006bdda
mov rsi, qword [rsp + 0x60]
cmp qword [0x140a67c70], 0
je 0x14006be48
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r9d, r9d
lea r8, [rbp + 0x1d0]
xor edx, edx
mov rcx, rsi
call qword [0x140a67c70]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x14006bdcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x14006be53
mov rax, qword [rsp + 0x58]
cmp rax, 0xffffffffffffffff
je 0x14006be53
mov rax, qword [rbp + 0x1d0]
lea rdx, [rbp + 0x1d8]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
call fcn.140068210
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.140069320
test al, al
jne 0x14006be0b
mov rcx, qword [rsp + 0x40]
call fcn.140890cbc
jmp 0x14006bd32
mov eax, dword [rsp + 0x48]
cmp eax, 7
jbe 0x14006be29
lea ecx, [rax - 6]
cmp ecx, eax
jae 0x14006be29
mov dword [rsp + 0x48], ecx
mov rax, qword [rsp + 0x40]
mov word [rax + rcx*2], r13w
lea rcx, [rdi + 0x28]
lea rdx, [rsp + 0x40]
call fcn.140068340
mov rax, qword [rsp + 0x50]
mov qword [rdi], rax
mov byte [rdi + 0x24], 1
mov dil, 1
jmp 0x14006be6a
mov ecx, 0x78
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x14006be67
lea ecx, [rax - 0x24]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor dil, dil
mov rcx, qword [rsp + 0x40]
call fcn.140890cbc
nop
mov rcx, qword [rsp + 0x60]
call fcn.140890cbc
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14006be99
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x14006be99
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x20]
call fcn.140890cbc
nop
mov rcx, qword [rsp + 0x30]
call fcn.140890cbc
movzx eax, dil
jmp 0x14006c13c
mov rcx, qword [rsp + 0x20]
call fcn.140890cbc
nop
mov rcx, qword [rsp + 0x30]
call fcn.140890cbc
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x30], rbx
mov rcx, rsi
call fcn.14006d790
movzx eax, al
shl eax, 2
mov r14d, eax
lea r15, [rsi + rax*2]
mov rcx, r15
call fcn.14006d690
test al, al
je 0x14006bf6b
lea eax, [r14 + 3]
cmp word [rsi + rax*2], 0
jne 0x14006bf6b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006c0ee
test al, 0x10
je 0x14006c0ee
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov word [rdi + 0x24], 0
mov dword [rdi + 0x20], eax
mov rdx, r15
lea rcx, [rdi + 0x28]
call fcn.140068210
cmp dword [rdi + 0x30], 2
jbe 0x14006bf58
mov dword [rdi + 0x30], 2
mov rax, qword [rdi + 0x28]
mov word [rax + 4], r13w
mov rdx, rsi
mov rcx, rdi
call fcn.14006baf0
mov r14b, 1
jmp 0x14006c129
movzx eax, word [rsi]
cmp ax, 0x5c
je 0x14006bf7e
cmp ax, 0x2f
jne 0x14006c0ee
mov rcx, rsi
cmp word [rsi + 2], 0
jne 0x14006bfce
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14006c0ee
test cl, 0x10
je 0x14006c0ee
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov word [rdi + 0x24], 0
mov dword [rdi + 0x30], r13d
mov rax, qword [rdi + 0x28]
mov word [rax], r13w
mov dword [rdi + 0x20], ecx
mov r14b, 1
jmp 0x14006c129
call fcn.14006d220
test eax, eax
je 0x14006c0ee
mov eax, eax
lea r14, [rsi + rax*2]
cmp word [r14], 0
je 0x14006c0ee
mov rcx, r14
call fcn.14006cf50
test eax, eax
jns 0x14006c0ee
mov rdx, rsi
mov rcx, rdi
call fcn.14006baf0
test al, al
je 0x14006c01f
lea rcx, [rdi + 0x28]
mov rdx, r14
call fcn.140068210
mov r14b, 1
jmp 0x14006c129
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140067f20
nop
mov edx, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], edx
jne 0x14006c045
lea rcx, [rsp + 0x20]
call fcn.140068820
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov eax, edx
mov word [rcx + rax*2], 0x5c
inc edx
mov word [rcx + rdx*2], r13w
mov dword [rsp + 0x28], edx
cmp dword [rsp + 0x2c], edx
jne 0x14006c071
lea rcx, [rsp + 0x20]
call fcn.140068820
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov eax, edx
mov word [rcx + rax*2], Ordinal_46
inc edx
mov word [rcx + rdx*2], r13w
mov dword [rsp + 0x28], edx
xor bl, bl
mov r8, rdi
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14006c1b0
test al, al
je 0x14006c0bb
lea rcx, [rdi + 0x28]
mov rax, qword [rcx]
cmp word [rax], 0x2e
jne 0x14006c0b9
cmp word [rax + 2], 0
je 0x14006c18d
mov bl, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
test bl, bl
jne 0x14006c166
cmp ecx, 0xffffffff
je 0x14006c0e4
test cl, 0x10
jne 0x14006c166
mov rcx, qword [rsp + 0x20]
call fcn.140890cbc
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14006c1b0
movzx r14d, al
test r12b, r12b
je 0x14006c124
test al, al
je 0x14006c124
mov eax, dword [rdi + 0x20]
shr eax, 0xa
test al, 1
je 0x14006c124
mov rdx, rsi
mov rcx, rdi
call fcn.14006baf0
movzx r14d, al
mov rbx, qword [rsp + 0x30]
cmp rbx, 0xffffffffffffffff
je 0x14006c138
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, r14b
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140890ac0
mov rbx, qword [rsp + 0x598]
add rsp, 0x540
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov word [rdi + 0x24], 0
mov eax, reloc.WS2_32.dll_recv
cmp ecx, 0xffffffff
cmovne eax, ecx
mov dword [rdi + 0x20], eax
lea rcx, [rdi + 0x28]
mov rdx, r14
call fcn.140068210
nop
mov rcx, qword [rsp + 0x20]
call fcn.140890cbc
mov r14b, 1
jmp 0x14006c124