Function at 0x1009c5a0
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, 0xa0
mov edi, ecx
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x98], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
lea esi, [esp + 0x30]
push 0x8b
push str....._base_files_file_enumerator_win.cc
push str.Next
push esi
call fcn.10065960
add esp, 0x10
lea ecx, [esp + 0x50]
push 0
push 0
push esi
call fcn.100bcee0
test byte [0x101bacd0], 0x19
jne 0x1009cc8d
lea eax, [edi + 4]
mov dword [esp + 0x2c], eax
lea eax, [edi + 0x28c]
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x284]
mov dword [esp + 0x28], eax
lea eax, [edi + 0x290]
mov dword [esp + 8], eax
lea eax, [edi + 0x258]
mov dword [esp + 0x24], eax
lea eax, [edi + 0x26c]
mov dword [esp + 0x18], eax
lea ebx, [edi + 0x30]
mov dword [esp + 0x20], ebx
jmp 0x1009c680
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x1009cc25
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
js 0x1009ca9d
cmp byte [esp + 0x3b], 0
js 0x1009c730
cmp byte [edi], 0
je 0x1009c6c0
push dword [esp + 0x2c]
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1009c950
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x1009c950
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], eax
je 0x1009cc0c
test eax, eax
mov ecx, dword [edi + 0x288]
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x1009cd21
lea eax, [eax + eax*2]
shl eax, 2
add eax, dword [edi + 0x284]
mov ecx, dword [esp + 0x24]
push eax
call fcn.1005cf00
mov eax, dword [edi + 0x288]
mov edx, dword [edi + 0x290]
test edx, edx
je 0x1009c741
lea ecx, [edx - 1]
mov esi, dword [esp + 8]
mov dword [esi], ecx
cmp eax, edx
jb 0x1009cd2a
cmp eax, ecx
jae 0x1009c754
jmp 0x1009cd24
push dword [esp + 0x30]
call fcn.10145bd4
add esp, 4
jmp 0x1009c680
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx], ecx
mov edx, eax
cmp eax, ecx
jb 0x1009cd24
cmp edx, 0x80000000
mov ebx, dword [esp + 0x20]
je 0x1009cd27
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
lea ecx, [ecx + ecx*2]
cmp byte [edx + ecx*4 + 0xb], 0
jns 0x1009c787
lea eax, [edx + ecx*4]
push dword [eax]
call fcn.10145bd4
add esp, 4
mov eax, dword [edi + 0x288]
mov ecx, eax
sub ecx, 1
mov edx, 0
cmovb ecx, edx
cmp ecx, 4
jb 0x1009c890
mov edx, dword [esp + 0x1c]
mov esi, dword [edx]
mov edx, dword [esp + 8]
mov ebx, dword [edx]
cmp ebx, esi
mov edx, 0
cmovae eax, edx
mov dword [esp + 0x14], esi
sub eax, esi
mov dword [esp + 0xc], ebx
add eax, ebx
mov ebx, dword [esp + 0x20]
mov edx, ecx
sub edx, eax
cmp edx, eax
jb 0x1009c890
mov edx, eax
shr edx, 2
add edx, eax
cmp edx, 4
mov eax, 3
cmovb edx, eax
cmp edx, ecx
jae 0x1009c890
inc edx
mov dword [esp + 0x10], edx
mov eax, edx
mov ecx, 0xc
mul ecx
jo 0x1009cbf0
mov ebx, eax
nop
push 0
push ebx
push 0x101a6dd4
call fcn.100a6c10
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x1009c83a
cmp byte [0x101bfbe0], 0
je 0x1009c83a
call fcn.101557f1
test eax, eax
je 0x1009c83a
mov ecx, eax
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
test eax, eax
jne 0x1009c800
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
push dword [esp + 8]
push dword [esp + 0x20]
lea ebx, [esp + 0x38]
push ebx
push dword [esp + 0x18]
call fcn.1009cf70
add esp, 0x10
push 0
push dword [edi + 0x284]
push 0x101a6dd4
call fcn.100a9680
add esp, 0xc
mov dword [edi + 0x284], esi
mov eax, dword [esp + 0x10]
mov dword [edi + 0x288], eax
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x1009c8da
test eax, eax
jne 0x1009c8f1
movzx eax, byte [edi + 0x277]
mov edx, dword [esp + 0x18]
test al, al
jns 0x1009c8d2
mov edx, dword [edi + 0x26c]
mov eax, dword [edi + 0x270]
mov ecx, dword [esp + 0x24]
push eax
push edx
jmp 0x1009c8e5
mov ecx, dword [esp + 0x24]
push 1
push 0x101a0f4c
lea eax, [esp + 0x38]
push eax
call fcn.10061990
jmp 0x1009c909
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
cmp byte [esp + 0x3b], 0
lea eax, [esp + 0x30]
jns 0x1009c918
mov eax, dword [esp + 0x30]
push 2
push 0
push 0
push dword [esp + 0x38]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [edi + 0x254], eax
mov byte [edi], 1
cmp byte [esp + 0x3b], 0
jns 0x1009c950
push dword [esp + 0x30]
call fcn.10145bd4
add esp, 4
nop word [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x254], 0xffffffff
je 0x1009ca70
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
test ebx, ebx
je 0x1009cd1e
push ebx
call fcn.10163aa4
add esp, 4
lea esi, [esp + 0x30]
mov ecx, esi
push eax
push ebx
call fcn.10060680
mov ecx, edi
push esi
call fcn.1009d2b0
test al, al
jne 0x1009c675
mov eax, dword [esp + 0x2c]
movzx ebx, byte [eax]
mov eax, dword [ebp + 8]
mov dword [eax], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 8], 0xffffffff
movzx eax, byte [esp + 0x3b]
lea edx, [esp + 0x30]
test al, al
jns 0x1009c9dc
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
push eax
push edx
push dword [ebp + 8]
call fcn.10061990
mov esi, 1
test bl, 0x10
je 0x1009cba0
mov esi, 2
cmp byte [edi + 0x264], 0
je 0x1009cba0
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x1009ca18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x1009cba0
mov ebx, dword [esp + 0x28]
mov ecx, ebx
call fcn.1009ce50
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x288], eax
jb 0x1009cd2d
lea edx, [eax + eax*2]
shl edx, 2
add edx, dword [ebx]
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xb], 0
js 0x1009cae0
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
movq xmm0, qword [ecx]
movq qword [edx], xmm0
jmp 0x1009cb61
mov byte [edi], 0
cmp dword [edi + 0x278], 0
je 0x1009ca87
cmp eax, 0x12
je 0x1009c680
jmp 0x1009cace
cmp byte [edi + 0x277], 0
js 0x1009caaf
mov byte [edi + 0x277], 1
mov ecx, dword [esp + 0x18]
jmp 0x1009cabf
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.10145bd4
add esp, 4
jmp 0x1009c675
mov dword [edi + 0x270], 1
mov ecx, dword [edi + 0x26c]
mov dword [ecx], 0x2a
cmp eax, 0x12
je 0x1009c680
cmp dword [edi + 0x27c], 0
je 0x1009c680
jmp 0x1009cc3a
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
cmp ecx, 4
ja 0x1009caf3
mov byte [edx + 0xb], cl
cmp edx, ebx
jbe 0x1009cb45
jmp 0x1009cb53
mov dword [esp + 0xc], ebx
cmp ecx, 0x7ffffff0
jae 0x1009cd14
mov dword [esp + 0x14], edx
mov ebx, ecx
or ebx, 7
inc ebx
mov dword [esp + 0x10], ecx
js 0x1009cd19
lea eax, [ebx + ebx]
push eax
call fcn.10145ba4
add esp, 4
mov edx, eax
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
or ebx, 0x80000000
mov dword [ecx + 8], ebx
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov ebx, dword [esp + 0xc]
mov ecx, eax
cmp edx, ebx
ja 0x1009cb53
lea eax, [edx + ecx*2]
add eax, 2
cmp eax, ebx
ja 0x1009cd33
inc ecx
add ecx, ecx
push ecx
push ebx
push edx
call fcn.10148eb0
add esp, 0xc
mov ebx, dword [edi + 0x288]
mov edx, dword [edi + 0x290]
lea ecx, [ebx - 1]
cmp edx, ecx
jne 0x1009cb80
mov eax, dword [esp + 8]
mov dword [eax], 0
jmp 0x1009cb93
mov dword [esp + 0xc], ebx
mov ebx, edx
inc ebx
mov eax, dword [esp + 8]
mov dword [eax], ebx
mov ebx, dword [esp + 0xc]
jne 0x1009cb95
mov edx, ecx
cmp ebx, edx
jb 0x1009cd30
nop dword [eax]
test dword [edi + 0x268], esi
mov ebx, dword [esp + 0x20]
je 0x1009c668
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x1009cbc5
test eax, eax
jne 0x1009c668
jmp 0x1009cc25
cmp byte [edi + 0x277], 0
mov eax, dword [esp + 0x18]
jns 0x1009cbd8
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp byte [esp + 0x3b], 0
lea ecx, [esp + 0x30]
jns 0x1009c657
mov ecx, dword [esp + 0x30]
jmp 0x1009c657
int3
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
jmp 0x1009cc60
cmp byte [esp + 0x3b], 0
jns 0x1009cc60
push dword [esp + 0x30]
call fcn.10145bd4
add esp, 4
jmp 0x1009cc60
push eax
call fcn.1009deb0
add esp, 4
mov dword [edi + 0x280], eax
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
test byte [0x101bacd0], 0x19
jne 0x1009ccc9
lea ecx, [esp + 0x50]
call fcn.100bd410
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.101465a3
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [esp + 0x30]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
sub esp, 8
movq xmm0, qword [esp + 0x50]
movq qword [esp], xmm0
lea edx, [esp + 0x4c]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
jmp 0x1009c615
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x48]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x1009cc69
call fcn.1015b4f0
call fcn.10034a48
int3
int3
int3
int3
int3
int3
int3
int3