Function at 0x14006bba0
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 [0x140a7a0a8]
xor rax, rsp
mov qword [rbp + 0x430], rax
movzx r12d, r8b
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.14006ceb0
mov ebx, eax
xor r13d, r13d
test eax, eax
js 0x14006be9c
lea ecx, [rbx + 1]
cmp word [rsi + rcx*2], r13w
je 0x14006be9c
lea r14, [rbx + rbx]
lea rdx, [rsi + r14]
lea rcx, [rsp + 0x30]
call fcn.140067ef0
nop
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140067ef0
nop
cmp ebx, dword [rsp + 0x28]
jae 0x14006bc32
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x20]
mov word [r14 + rax], r13w
mov eax, dword [rsp + 0x38]
cmp eax, 6
jbe 0x14006bc5a
mov ecx, eax
mov rax, qword [rsp + 0x30]
add rax, 0xfffffffffffffff4
lea rcx, [rax + rcx*2]
lea rdx, str.:_DATA
call fcn.1400693b0
test al, al
jne 0x14006bc6b
lea rdx, str.:_DATA
lea rcx, [rsp + 0x30]
call fcn.140068360
mov rcx, qword [rsp + 0x20]
call fcn.14006d640
mov rdx, qword [rsp + 0x20]
test al, al
je 0x14006bcc8
cmp ebx, 2
je 0x14006bc8f
cmp ebx, 3
jne 0x14006bcc8
cmp word [rdx + 4], 0x5c
jne 0x14006bcc8
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 0x14006bcdc
lea rdx, [rsp + 0x20]
call fcn.140067fb0
jmp 0x14006bcdc
movzx r8d, r12b
mov rcx, rdi
call fcn.14006bba0
test al, al
je 0x14006be87
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.140067c90
nop
lea rcx, [rsp + 0x40]
call fcn.140067f70
nop
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14006bd43
mov rax, qword [0x140a7ebf8]
test rax, rax
je 0x14006be18
lea rdx, [rsp + 0x70]
call rax
test eax, eax
je 0x14006be23
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x78]
jmp 0x14006bdaa
mov rsi, qword [rsp + 0x60]
cmp qword [0x140a7ebf0], 0
je 0x14006be18
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 [0x140a7ebf0]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x14006bd9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x14006be23
mov rax, qword [rsp + 0x58]
cmp rax, 0xffffffffffffffff
je 0x14006be23
mov rax, qword [rbp + 0x1d0]
lea rdx, [rbp + 0x1d8]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
call fcn.1400681e0
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.1400692f0
test al, al
jne 0x14006bddb
mov rcx, qword [rsp + 0x40]
call fcn.1408acb9c
jmp 0x14006bd02
mov eax, dword [rsp + 0x48]
cmp eax, 7
jbe 0x14006bdf9
lea ecx, [rax - 6]
cmp ecx, eax
jae 0x14006bdf9
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.140068310
mov rax, qword [rsp + 0x50]
mov qword [rdi], rax
mov byte [rdi + 0x24], 1
mov dil, 1
jmp 0x14006be3a
mov ecx, 0x78
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x14006be37
lea ecx, [rax - 0x24]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor dil, dil
mov rcx, qword [rsp + 0x40]
call fcn.1408acb9c
nop
mov rcx, qword [rsp + 0x60]
call fcn.1408acb9c
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14006be69
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x14006be69
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x20]
call fcn.1408acb9c
nop
mov rcx, qword [rsp + 0x30]
call fcn.1408acb9c
movzx eax, dil
jmp 0x14006c10c
mov rcx, qword [rsp + 0x20]
call fcn.1408acb9c
nop
mov rcx, qword [rsp + 0x30]
call fcn.1408acb9c
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x30], rbx
mov rcx, rsi
call fcn.14006d760
movzx eax, al
shl eax, 2
mov r14d, eax
lea r15, [rsi + rax*2]
mov rcx, r15
call fcn.14006d660
test al, al
je 0x14006bf3b
lea eax, [r14 + 3]
cmp word [rsi + rax*2], 0
jne 0x14006bf3b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006c0be
test al, 0x10
je 0x14006c0be
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.1400681e0
cmp dword [rdi + 0x30], 2
jbe 0x14006bf28
mov dword [rdi + 0x30], 2
mov rax, qword [rdi + 0x28]
mov word [rax + 4], r13w
mov rdx, rsi
mov rcx, rdi
call fcn.14006bac0
mov r14b, 1
jmp 0x14006c0f9
movzx eax, word [rsi]
cmp ax, 0x5c
je 0x14006bf4e
cmp ax, 0x2f
jne 0x14006c0be
mov rcx, rsi
cmp word [rsi + 2], 0
jne 0x14006bf9e
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14006c0be
test cl, 0x10
je 0x14006c0be
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 0x14006c0f9
call fcn.14006d1f0
test eax, eax
je 0x14006c0be
mov eax, eax
lea r14, [rsi + rax*2]
cmp word [r14], 0
je 0x14006c0be
mov rcx, r14
call fcn.14006cf20
test eax, eax
jns 0x14006c0be
mov rdx, rsi
mov rcx, rdi
call fcn.14006bac0
test al, al
je 0x14006bfef
lea rcx, [rdi + 0x28]
mov rdx, r14
call fcn.1400681e0
mov r14b, 1
jmp 0x14006c0f9
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140067ef0
nop
mov edx, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], edx
jne 0x14006c015
lea rcx, [rsp + 0x20]
call fcn.1400687f0
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 0x14006c041
lea rcx, [rsp + 0x20]
call fcn.1400687f0
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.14006c180
test al, al
je 0x14006c08b
lea rcx, [rdi + 0x28]
mov rax, qword [rcx]
cmp word [rax], 0x2e
jne 0x14006c089
cmp word [rax + 2], 0
je 0x14006c15d
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 0x14006c136
cmp ecx, 0xffffffff
je 0x14006c0b4
test cl, 0x10
jne 0x14006c136
mov rcx, qword [rsp + 0x20]
call fcn.1408acb9c
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14006c180
movzx r14d, al
test r12b, r12b
je 0x14006c0f4
test al, al
je 0x14006c0f4
mov eax, dword [rdi + 0x20]
shr eax, 0xa
test al, 1
je 0x14006c0f4
mov rdx, rsi
mov rcx, rdi
call fcn.14006bac0
movzx r14d, al
mov rbx, qword [rsp + 0x30]
cmp rbx, 0xffffffffffffffff
je 0x14006c108
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, r14b
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.1408ac9a0
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.1400681e0
nop
mov rcx, qword [rsp + 0x20]
call fcn.1408acb9c
mov r14b, 1
jmp 0x14006c0f4