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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x1803e3008]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, qword [rcx + 0x18]
xor r12d, r12d
or r13, 0xffffffffffffffff
mov rbp, rcx
mov edi, r12d
test rsi, rsi
je 0x180095ae4
mov rbx, r13
inc rbx
cmp word [rsi + rbx*2], r12w
jne 0x180095876
lea rcx, [rbx + 5]
movabs rax, 0x3fffffffffffffff
cmp rcx, rax
ja 0x1801a7270
add rcx, rcx
call sym.python310.dll_PyMem_Malloc
mov r14, rax
test rax, rax
je 0x1801a7273
mov rcx, rax
sub rcx, rsi
movzx eax, word [rsi]
mov word [rcx + rsi], ax
lea rsi, [rsi + 2]
test ax, ax
jne 0x1800958b1
test rbx, rbx
jle 0x180095901
movzx eax, word [r14 + rbx*2 - 2]
sub ax, 0x2f
cmp ax, 0x2d
ja 0x1800958e6
movabs rcx, 0x200000000801
bt rcx, rax
jb 0x1800958f3
mov eax, 0x5c
mov word [r14 + rbx*2], ax
inc rbx
movabs rax, 0x2a002e002a
mov qword [r14 + rbx*2], rax
xor ecx, ecx
call sym.python310.dll_PyList_New
mov rdi, rax
test rax, rax
je 0x180095a90
call sym.python310.dll_PyEval_SaveThread
lea rdx, [rsp + 0x20]
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rbx
mov r15, rax
call sym.python310.dll_PyEval_RestoreThread
cmp r15, r13
je 0x1801a727e
movzx ecx, word [rsp + 0x4c]
mov edx, 0x2e
movzx eax, dx
sub ecx, eax
jne 0x18009595a
movzx ecx, word [rsp + 0x4e]
movzx eax, r12w
sub ecx, eax
test ecx, ecx
je 0x180095a13
movzx ecx, word [rsp + 0x4c]
movzx eax, dx
sub ecx, eax
jne 0x180095985
movzx ecx, word [rsp + 0x4e]
movzx eax, dx
sub ecx, eax
jne 0x180095985
movzx ecx, word [rsp + 0x50]
movzx eax, r12w
sub ecx, eax
test ecx, ecx
je 0x180095a13
lea rax, [rsp + 0x4c]
mov rdx, r13
inc rdx
cmp word [rax + rdx*2], r12w
jne 0x180095995
lea rcx, [rsp + 0x4c]
call sym.python310.dll_PyUnicode_FromWideChar
mov rbx, rax
cmp dword [rbp + 0x20], r12d
jne 0x1801a72be
test rbx, rbx
je 0x1801a732c
mov rax, qword [rdi + 8]
test dword [rax + 0xa8], 0x2000000
je 0x1801a72f1
mov rsi, qword [rdi + 0x10]
mov rcx, rdi
lea rdx, [rsi + 1]
call fcn.180096328
test eax, eax
js 0x1801a7302
inc qword [rbx]
mov ecx, r12d
mov rax, qword [rdi + 0x18]
mov qword [rax + rsi*8], rbx
mov rax, qword [rbx]
dec rax
mov qword [rbx], rax
test ecx, ecx
jne 0x1801a731d
test rax, rax
je 0x1801a730a
mov rbx, qword [0x18044f1f0]
mov rax, r12
xchg qword [0x18044f1f0], rax
test rbx, rbx
je 0x1801a736f
mov rdx, qword [rbx + 0x10]
lea rcx, [0x18044f158]
add rdx, 0x40
mov r8, rbx
call fcn.180095b38
lea rdx, [rsp + 0x20]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rcx, rbx
mov esi, eax
call fcn.180095c54
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rdx + 0x1f0]
xchg qword [rdx + 0x1f0], rbx
test esi, esi
je 0x180095ad4
cmp esi, 1
je 0x18009593e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1801a7289
mov rcx, qword [0x1803fc5f8]
mov rdx, r14
call qword [case.0x180096615.3]
mov rax, rdi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180181080
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180095a76
jmp 0x1801a7343
mov ebx, 1
lea rsi, [0x180246d98]
lea ecx, [rbx + 5]
jmp 0x180095897
mov r14, r12
call sym.python310.dll_PyErr_NoMemory
nop
jmp 0x180095a90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jmp 0x1801a728c
test rdi, rdi
je 0x180095a90
add qword [rdi], r13
jne 0x1801a72a1
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
mov r8, qword [rbp + 0x30]
xor r9d, r9d
mov rcx, qword [sym.python310.dll_PyExc_OSError]
xor edx, edx
call sym.python310.dll_PyErr_SetExcFromWindowsErrWithFilenameObjects
mov rdi, rax
jmp 0x180095a90
test rax, rax
je 0x1800959b6
mov rcx, rax
mov rsi, rax
call sym.python310.dll_PyUnicode_EncodeFSDefault
add qword [rsi], r13
mov rbx, rax
jne 0x1800959b6
mov rax, qword [rsi + 8]
mov rcx, rsi
mov rdx, qword [rax + 0x30]
call rdx
nop
jmp 0x1800959b6
mov edx, 0x150
lea rcx, str.D:_w1_sObjectslistobject.c
call sym.python310.dll__PyErr_BadInternalCall
mov ecx, r13d
jmp 0x1800959f9
mov rax, qword [rbx + 8]
mov rcx, rbx
mov rdx, qword [rax + 0x30]
call rdx
nop
jmp 0x180095a13
test rax, rax
jne 0x1801a732c
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
add qword [rdi], r13
jne 0x1801a733b
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
mov rdi, r12
jmp 0x180095a7f
add qword [rdi], r13
jne 0x1801a7352
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
mov r8, qword [rbp + 0x30]
xor r9d, r9d
mov rcx, qword [sym.python310.dll_PyExc_OSError]
xor edx, edx
call sym.python310.dll_PyErr_SetExcFromWindowsErrWithFilenameObjects
mov rdi, rax
jmp 0x180095a7f
lea rcx, [0x180253c18]
call sym.python310.dll__Py_FatalError_TstateNULL
int3