Function at 0x140011680
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push rbp
push r12
push r14
push r15
sub rsp, 0x5d8
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
mov r12, r8
mov rbp, rdx
mov r14, rcx
lea rdx, str.E:oldworkWorkCodeTD202109includecommonmongoose.c
mov r8d, 0x1e46
mov ecx, 3
mov r15, r9
call fcn.140003ad0
test eax, eax
je 0x1400116da
mov r8, rbp
lea rcx, str._p___s_
mov rdx, r14
call fcn.140003d70
mov qword [rsp + 0x5d0], rbx
test rbp, rbp
jne 0x1400116f7
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001194e
mov ecx, 0x368
call fcn.14005f49c
mov rbx, rax
test rax, rax
jne 0x140011717
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001194e
mov r8d, 0x104
lea rdx, [rsp + 0x390]
mov rcx, rbp
call fcn.140015110
lea rcx, [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140011946
test al, 0x10
je 0x140011946
lea rcx, [rsp + 0x390]
mov qword [rsp + 0x5c8], rsi
sub rcx, 2
mov qword [rsp + 0x5b8], r13
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140011770
mov eax, dword [0x140087c90]
lea rdx, [rbx + 0x10]
mov dword [rcx], eax
movzx eax, word [0x140087c94]
mov word [rcx + 4], ax
lea rcx, [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov byte [rbx + 0x264], 0
lea rsi, [rbx + 0x260]
mov qword [rbx + 8], rax
xor r13d, r13d
mov qword [rsp + 0x5c0], rdi
nop dword [rax]
xor edx, edx
mov r8d, 0x108
mov rcx, rsi
call fcn.14004ca60
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x140011909
mov qword [rsp + 0x38], r13
lea rax, [rsi + 4]
xor edx, edx
mov qword [rsp + 0x30], r13
lea r8, [rbx + 0x3c]
mov dword [rsp + 0x28], 0x104
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rcx, qword [rbx + 8]
test eax, eax
jne 0x140011836
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, 0xffffffffffffffff
mov qword [rbx + 8], 0xffffffffffffffff
test rsi, rsi
je 0x140011918
lea rdi, [rsi + 4]
mov r8d, 1
mov rcx, rdi
mov rdx, r12
call fcn.14000e1a0
test eax, eax
jne 0x1400117c0
mov r9, rbp
mov qword [rsp + 0x20], rdi
lea r8, [0x140088628]
mov edx, 0x101
lea rcx, [rsp + 0x80]
call fcn.140003a00
mov r8d, 0x100
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x80]
call fcn.140015110
mov r8d, 0x284c
lea rdx, str.E:oldworkWorkCodeTD202109includecommonmongoose.c
mov ecx, 4
call fcn.140003ad0
test eax, eax
je 0x1400118dc
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.140061088
mov r8d, eax
lea rdx, [rsp + 0x190]
lea rcx, str.__ls______d
call fcn.140003d70
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.140061088
test eax, eax
jne 0x1400117c0
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, r14
call r15
jmp 0x1400117c0
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 8]
mov r13, qword [rsp + 0x5b8]
mov rdi, qword [rsp + 0x5c0]
mov rsi, qword [rsp + 0x5c8]
cmp rcx, 0xffffffffffffffff
je 0x14001193c
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call fcn.14005f488
jmp 0x140011983
mov rcx, rbx
call fcn.14005f488
mov r8d, 0x1e54
lea rdx, str.E:oldworkWorkCodeTD202109includecommonmongoose.c
mov ecx, 3
call fcn.140003ad0
test eax, eax
je 0x140011983
call fcn.140052050
mov r8, rbp
lea rcx, str._p_opendir__s______d
mov rdx, r14
mov r9d, dword [rax]
call fcn.140003d70
mov rbx, qword [rsp + 0x5d0]
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0x5d8
pop r15
pop r14
pop r12
pop rbp
ret