Function at 0x4ba380
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, ecx
mov eax, dword [0x547008]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x30]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x20]
push 0x8b
push str.file_enumerator_win.cc
push str.Next
push ebx
call fcn.0049a500
add esp, 0x10
mov ecx, esi
mov esi, ebx
push 0
push ebx
call fcn.00490060
lea eax, [edi + 4]
mov dword [esp + 0x14], eax
lea eax, [edi + 0x284]
mov dword [esp + 0x18], eax
lea eax, [edi + 0x258]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x26c]
mov dword [esp + 0xc], eax
lea eax, [edi + 0x30]
mov dword [esp + 0x1c], eax
jmp 0x4ba5de
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x28c], eax
je 0x4ba65d
test eax, eax
mov ecx, dword [edi + 0x288]
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x4ba719
lea eax, [eax + eax*2]
shl eax, 2
add eax, dword [edi + 0x284]
mov ecx, dword [esp + 0x10]
push eax
call fcn.0049c120
mov ecx, dword [esp + 0x18]
call fcn.004baad0
xor eax, eax
dec eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x4ba4b5
test eax, eax
je 0x4ba479
call fcn.005183b0
mov ecx, esi
call fcn.0049c000
jmp 0x4ba4c6
movzx eax, byte [edi + 0x277]
test al, al
js 0x4ba48d
and eax, 0x7f
mov edx, dword [esp + 0xc]
jmp 0x4ba499
mov eax, dword [edi + 0x270]
mov edx, dword [edi + 0x26c]
test eax, eax
js 0x4ba6d9
test edx, edx
jne 0x4ba4ad
test eax, eax
jne 0x4ba708
mov ecx, dword [esp + 0x10]
push eax
push edx
jmp 0x4ba4c0
mov ecx, dword [esp + 0x10]
push 1
push 0x53367a
push esi
call fcn.0049d200
cmp byte [esp + 0x2b], 0
mov eax, esi
jns 0x4ba4d3
mov eax, dword [esp + 0x20]
push 2
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x20]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [edi + 0x254], eax
mov byte [edi], 1
mov ecx, esi
call fcn.0049c100
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x254], 0xffffffff
je 0x4ba61a
xor eax, eax
dec eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4ba6ea
push ebx
call fcn.005043ab
add esp, 4
mov ecx, esi
push eax
push ebx
call fcn.0049c050
mov ecx, edi
push esi
call fcn.004babf0
test al, al
jne 0x4ba5d7
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx]
xor ecx, ecx
dec ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x10]
push esi
mov esi, eax
push eax
call fcn.0049e200
test bl, 0x10
je 0x4ba596
cmp byte [edi + 0x264], 0
je 0x4ba596
mov eax, esi
cmp byte [esi + 0xb], 0
jns 0x4ba57f
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x4ba596
mov ecx, dword [esp + 0x18]
push esi
call fcn.004ba7e0
and ebx, 0x10
shr ebx, 4
mov ecx, edi
push ebx
call fcn.004bad80
test al, al
mov eax, esi
lea esi, [esp + 0x20]
je 0x4ba5d0
mov ebx, eax
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x4ba699
test eax, eax
mov eax, ebx
je 0x4ba6cc
call fcn.005183b0
mov eax, ebx
mov ecx, eax
call fcn.0049c100
mov ecx, esi
call fcn.0049c100
cmp byte [edi], 0
je 0x4ba408
push dword [esp + 0x14]
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4ba4f6
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x4ba4f6
mov byte [edi], 0
cmp dword [edi + 0x278], 0
jne 0x4ba640
cmp byte [edi + 0x277], 0
js 0x4ba687
mov byte [edi + 0x277], 1
mov ecx, dword [esp + 0xc]
mov dword [ecx], 0x2a
cmp eax, 0x12
je 0x4ba5de
cmp dword [edi + 0x27c], 0
je 0x4ba5de
push eax
call fcn.00487310
add esp, 4
mov dword [edi + 0x280], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0049c000
lea ecx, [esp + 0x30]
call fcn.004900e0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004e8be6
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [edi + 0x270], 1
mov ecx, dword [edi + 0x26c]
jmp 0x4ba63a
cmp byte [edi + 0x277], 0
mov eax, dword [esp + 0xc]
jns 0x4ba6ac
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
cmp byte [esp + 0x2b], 0
mov ecx, esi
jns 0x4ba6b9
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
mov eax, ebx
jne 0x4ba5d0
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0049c100
jmp 0x4ba667
push str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
push str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
push 0x13a
jmp 0x4ba6f9
push str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
push str.__s___nullptr
push 0x109
push str....._third_partylibc_srcinclude_string_view
push str._s:_d:_assertion__s_failed:__s_n
call fcn.00457520
push str.string_view::string_view__CharT___size_t_:_received_nullptr
push str.__len__0____s___nullptr
push 0x13c
jmp 0x4ba6f9
int3