Function at 0x1009c5b0
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.100bcef0
test byte [0x101bacd0], 0x19
jne 0x1009cc9d
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 0x1009c690
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x1009cc35
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
js 0x1009caad
cmp byte [esp + 0x3b], 0
js 0x1009c740
cmp byte [edi], 0
je 0x1009c6d0
push dword [esp + 0x2c]
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1009c960
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x1009c960
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], eax
je 0x1009cc1c
test eax, eax
mov ecx, dword [edi + 0x288]
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x1009cd31
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 0x1009c751
lea ecx, [edx - 1]
mov esi, dword [esp + 8]
mov dword [esi], ecx
cmp eax, edx
jb 0x1009cd3a
cmp eax, ecx
jae 0x1009c764
jmp 0x1009cd34
push dword [esp + 0x30]
call fcn.10145bd4
add esp, 4
jmp 0x1009c690
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx], ecx
mov edx, eax
cmp eax, ecx
jb 0x1009cd34
cmp edx, 0x80000000
mov ebx, dword [esp + 0x20]
je 0x1009cd37
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
lea ecx, [ecx + ecx*2]
cmp byte [edx + ecx*4 + 0xb], 0
jns 0x1009c797
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 0x1009c8a0
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 0x1009c8a0
mov edx, eax
shr edx, 2
add edx, eax
cmp edx, 4
mov eax, 3
cmovb edx, eax
cmp edx, ecx
jae 0x1009c8a0
inc edx
mov dword [esp + 0x10], edx
mov eax, edx
mov ecx, 0xc
mul ecx
jo 0x1009cc00
mov ebx, eax
nop
push 0
push ebx
push 0x101a6dd4
call fcn.100a6c20
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x1009c84a
cmp byte [0x101bfbe0], 0
je 0x1009c84a
call fcn.101557f1
test eax, eax
je 0x1009c84a
mov ecx, eax
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
test eax, eax
jne 0x1009c810
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.1009cf80
add esp, 0x10
push 0
push dword [edi + 0x284]
push 0x101a6dd4
call fcn.100a9690
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 0x1009c8ea
test eax, eax
jne 0x1009c901
movzx eax, byte [edi + 0x277]
mov edx, dword [esp + 0x18]
test al, al
jns 0x1009c8e2
mov edx, dword [edi + 0x26c]
mov eax, dword [edi + 0x270]
mov ecx, dword [esp + 0x24]
push eax
push edx
jmp 0x1009c8f5
mov ecx, dword [esp + 0x24]
push 1
push 0x101a0f4c
lea eax, [esp + 0x38]
push eax
call fcn.10061990
jmp 0x1009c919
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 0x1009c928
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 0x1009c960
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 0x1009ca80
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
test ebx, ebx
je 0x1009cd2e
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.1009d2c0
test al, al
jne 0x1009c685
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 0x1009c9ec
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 0x1009cbb0
mov esi, 2
cmp byte [edi + 0x264], 0
je 0x1009cbb0
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x1009ca28
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x1009cbb0
mov ebx, dword [esp + 0x28]
mov ecx, ebx
call fcn.1009ce60
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x288], eax
jb 0x1009cd3d
lea edx, [eax + eax*2]
shl edx, 2
add edx, dword [ebx]
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xb], 0
js 0x1009caf0
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
movq xmm0, qword [ecx]
movq qword [edx], xmm0
jmp 0x1009cb71
mov byte [edi], 0
cmp dword [edi + 0x278], 0
je 0x1009ca97
cmp eax, 0x12
je 0x1009c690
jmp 0x1009cade
cmp byte [edi + 0x277], 0
js 0x1009cabf
mov byte [edi + 0x277], 1
mov ecx, dword [esp + 0x18]
jmp 0x1009cacf
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.10145bd4
add esp, 4
jmp 0x1009c685
mov dword [edi + 0x270], 1
mov ecx, dword [edi + 0x26c]
mov dword [ecx], 0x2a
cmp eax, 0x12
je 0x1009c690
cmp dword [edi + 0x27c], 0
je 0x1009c690
jmp 0x1009cc4a
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
cmp ecx, 4
ja 0x1009cb03
mov byte [edx + 0xb], cl
cmp edx, ebx
jbe 0x1009cb55
jmp 0x1009cb63
mov dword [esp + 0xc], ebx
cmp ecx, 0x7ffffff0
jae 0x1009cd24
mov dword [esp + 0x14], edx
mov ebx, ecx
or ebx, 7
inc ebx
mov dword [esp + 0x10], ecx
js 0x1009cd29
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 0x1009cb63
lea eax, [edx + ecx*2]
add eax, 2
cmp eax, ebx
ja 0x1009cd43
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 0x1009cb90
mov eax, dword [esp + 8]
mov dword [eax], 0
jmp 0x1009cba3
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 0x1009cba5
mov edx, ecx
cmp ebx, edx
jb 0x1009cd40
nop dword [eax]
test dword [edi + 0x268], esi
mov ebx, dword [esp + 0x20]
je 0x1009c678
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x1009cbd5
test eax, eax
jne 0x1009c678
jmp 0x1009cc35
cmp byte [edi + 0x277], 0
mov eax, dword [esp + 0x18]
jns 0x1009cbe8
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp byte [esp + 0x3b], 0
lea ecx, [esp + 0x30]
jns 0x1009c667
mov ecx, dword [esp + 0x30]
jmp 0x1009c667
int3
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
jmp 0x1009cc70
cmp byte [esp + 0x3b], 0
jns 0x1009cc70
push dword [esp + 0x30]
call fcn.10145bd4
add esp, 4
jmp 0x1009cc70
push eax
call fcn.1009dec0
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 0x1009ccd9
lea ecx, [esp + 0x50]
call fcn.100bd420
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 0x1009c625
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 0x1009cc79
call fcn.1015b4f0
call fcn.10034a48
int3
int3
int3
int3
int3
int3
int3
int3