Function at 0x1400047f3
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 0x14000487a
test rdx, rdx
je 0x1400048b2
test r8, r8
je 0x1400048ea
mov rbp, qword [r8]
test rbp, rbp
je 0x140004922
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x140004972
mov esi, 0
lea rdx, [rsp + 0x5c]
mov rcx, r12
call sub.msvcrt.dll_strcpy
cmp esi, 0x20
ja 0x1400049c1
ja case.0x140004878.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 0x140004a3c
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 0x140004a3c
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 0x140004a3c
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140004943
mov qword [rbx], rax
mov esi, 0
jmp 0x14000484c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 2
jne 0x140004957
mov esi, 0x12
jmp 0x14000497f
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 0x1400049b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x12
jne 0x14000499b
lea rax, [rbp - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004859
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140004859
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 0x14000497f
jmp 0x14000484c
mov eax, esi
jmp 0x140004a3c
cmp esi, 0x94
je 0x140004a74
jbe 0x1400049f6
cmp esi, 0xb7
je 0x140004a90
cmp esi, 0x80070005
je 0x140004a97
cmp esi, 0xaa
je 0x140004a1b
mov eax, 0x40000001
jmp 0x140004a3c
cmp esi, 0x7f
ja 0x140004a0c
cmp esi, 0x7e
jae 0x140004a7b
cmp esi, 0x50
jne 0x140004a82
mov eax, 0x40000007
jmp 0x140004a3c
cmp esi, 0x91
jne 0x140004a89
mov eax, 0x4000000d
jmp 0x140004a3c
mov eax, 0x4000000d
jmp 0x140004a3c
mov eax, 0x40000003
jmp 0x140004a3c
mov eax, 0x40000009
jmp 0x140004a3c
mov eax, 0x4000000d
jmp 0x140004a3c
mov eax, 0x40000001
test rdi, rdi
je 0x140004a43
mov dword [rdi], esi
test eax, eax
je 0x140004a5d
test rbx, rbx
je 0x140004a53
mov qword [rbx], 0
test r12, r12
je 0x140004a5d
mov byte [r12], 0
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, 0x40000008
jmp 0x140004a3c
mov eax, 0x4000000d
jmp 0x140004a3c
mov eax, 0x40000003
jmp 0x140004a3c
mov eax, 0x40000001
jmp 0x140004a3c
mov eax, 0x40000001
jmp 0x140004a3c
mov eax, 0x40000007
jmp 0x140004a3c
mov eax, 0x40000009
jmp 0x140004a3c