Function at 0x1400047a3
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x178
mov r13, rcx
mov r12, rdx
mov rbx, r8
mov rdi, r9
test rcx, rcx
je 0x14000482a
test rdx, rdx
je 0x140004862
test r8, r8
je 0x14000489a
mov rbp, qword [r8]
test rbp, rbp
je 0x1400048d2
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x140004922
mov esi, 0
lea rdx, [rsp + 0x5c]
mov rcx, r12
call sub.msvcrt.dll_strcpy
cmp esi, 0x20
ja 0x140004971
ja case.0x140004828.1
mov eax, esi
lea rdx, [0x1400116d4]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov dword [rsp + 0x20], 0xdb
lea r9, str.C:_Projects_rdp_bot_codebase_fs.c
lea r8, str._path___NULL_
lea rdx, str.fs_dir_list
lea rcx, [0x1400113e0]
call fcn.140002ef2
mov esi, 0xa0
mov eax, 0x40000001
jmp 0x1400049ec
mov dword [rsp + 0x20], 0xdc
lea r9, str.C:_Projects_rdp_bot_codebase_fs.c
lea r8, str._name___NULL_
lea rdx, str.fs_dir_list
lea rcx, [0x1400113e0]
call fcn.140002ef2
mov esi, 0xa0
mov eax, 0x40000001
jmp 0x1400049ec
mov dword [rsp + 0x20], 0xdd
lea r9, str.C:_Projects_rdp_bot_codebase_fs.c
lea r8, str._resume_handle___NULL_
lea rdx, str.fs_dir_list
lea rcx, [0x1400113e0]
call fcn.140002ef2
mov esi, 0xa0
mov eax, 0x40000001
jmp 0x1400049ec
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400048f3
mov qword [rbx], rax
mov esi, 0
jmp 0x1400047fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 2
jne 0x140004907
mov esi, 0x12
jmp 0x14000492f
mov r9d, eax
mov r8, r13
lea rdx, str.fs_dir_list
lea rcx, str._E____s_____FindFirstFileA_failed_path_s_gle_lu__n
call fcn.140002ef2
jmp 0x140004964
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x12
jne 0x14000494b
lea rax, [rbp - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004809
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140004809
mov r9d, eax
mov r8, r13
lea rdx, str.fs_dir_list
lea rcx, str._E____s_____FindNextFileA_failed_path_s_gle_lu__n
call fcn.140002ef2
test esi, esi
jne 0x14000492f
jmp 0x1400047fc
mov eax, esi
jmp 0x1400049ec
cmp esi, 0x94
je 0x140004a24
jbe 0x1400049a6
cmp esi, 0xb7
je 0x140004a40
cmp esi, 0x80070005
je 0x140004a47
cmp esi, 0xaa
je 0x1400049cb
mov eax, 0x40000001
jmp 0x1400049ec
cmp esi, 0x7f
ja 0x1400049bc
cmp esi, 0x7e
jae 0x140004a2b
cmp esi, 0x50
jne 0x140004a32
mov eax, 0x40000007
jmp 0x1400049ec
cmp esi, 0x91
jne 0x140004a39
mov eax, 0x4000000d
jmp 0x1400049ec
mov eax, 0x4000000d
jmp 0x1400049ec
mov eax, 0x40000003
jmp 0x1400049ec
mov eax, 0x40000009
jmp 0x1400049ec
mov eax, 0x4000000d
jmp 0x1400049ec
mov eax, 0x40000001
test rdi, rdi
je 0x1400049f3
mov dword [rdi], esi
test eax, eax
je 0x140004a0d
test rbx, rbx
je 0x140004a03
mov qword [rbx], 0
test r12, r12
je 0x140004a0d
mov byte [r12], 0
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, 0x40000008
jmp 0x1400049ec
mov eax, 0x4000000d
jmp 0x1400049ec
mov eax, 0x40000003
jmp 0x1400049ec
mov eax, 0x40000001
jmp 0x1400049ec
mov eax, 0x40000001
jmp 0x1400049ec
mov eax, 0x40000007
jmp 0x1400049ec
mov eax, 0x40000009
jmp 0x1400049ec