Function at 0x10170e80
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, 0xb0
mov edi, ecx
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [esp + 0xa8], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
lea esi, [esp + 0x50]
push 0x83
push str..._.._base_files_file_enumerator_win.cc
push str.Next
push esi
call fcn.1014e3e0
add esp, 0x10
lea ecx, [esp + 0x60]
push 0
push esi
call fcn.10160300
lea eax, [edi + 4]
mov dword [esp + 0x24], eax
lea eax, [edi + 0x28c]
mov dword [esp + 0x14], eax
lea eax, [edi + 0x284]
mov dword [esp + 0x20], eax
lea eax, [edi + 0x290]
mov dword [esp + 8], eax
lea eax, [edi + 0x258]
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x26c]
mov dword [esp + 0xc], eax
lea ebx, [edi + 0x30]
mov dword [esp + 0x18], ebx
jmp 0x10170f37
mov ecx, esi
call fcn.1014bf30
cmp byte [edi], 0
je 0x10170f70
push dword [esp + 0x24]
push dword [edi + 0x254]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x1017118b
push dword [edi + 0x254]
call dword [sym.imp.kernel32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x1017118b
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
cmp dword [ecx], eax
je 0x1017143e
test eax, eax
mov ecx, dword [edi + 0x288]
cmove eax, ecx
add eax, 0xffffffff
cmp ecx, eax
jb 0x101714c1
lea eax, [eax + eax*2]
shl eax, 2
add eax, dword [edi + 0x284]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.1014bf50
mov ecx, dword [edi + 0x288]
mov edx, dword [edi + 0x290]
test edx, edx
je 0x10170fd8
lea eax, [edx - 1]
mov esi, dword [esp + 8]
mov dword [esi], eax
cmp ecx, edx
jb 0x101714ca
cmp ecx, eax
jae 0x10170feb
jmp 0x101714c4
lea eax, [ecx - 1]
mov edx, dword [esp + 8]
mov dword [edx], eax
mov edx, ecx
cmp ecx, eax
jb 0x101714c4
cmp edx, 0x80000000
je 0x101714c7
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
call fcn.1014bf30
mov ecx, dword [edi + 0x288]
mov eax, ecx
sub eax, 1
mov edx, 0
cmovb eax, edx
cmp eax, 4
jb 0x101710d0
mov edx, dword [esp + 0x14]
mov ebx, dword [edx]
mov edx, dword [esp + 8]
mov esi, dword [edx]
cmp esi, ebx
mov edx, 0
cmovae ecx, edx
sub ecx, ebx
mov dword [esp + 0x10], esi
add ecx, esi
mov edx, eax
sub edx, ecx
cmp edx, ecx
jb 0x101710d0
mov esi, ecx
shr esi, 2
add esi, ecx
cmp esi, 3
mov ecx, 3
cmovbe esi, ecx
cmp esi, eax
jae 0x101710d0
add esi, 1
mov eax, esi
mov ecx, 0xc
mul ecx
jo 0x10171426
push eax
call fcn.10170ad0
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], esi
mov ecx, dword [esp + 0x20]
mov edx, ebx
push dword [esp + 8]
push dword [esp + 0x18]
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x1c]
call fcn.101715c0
add esp, 0x10
push dword [edi + 0x284]
call fcn.10170af0
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [edi + 0x284], eax
mov dword [edi + 0x288], esi
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x10171128
test eax, eax
lea esi, [esp + 0x50]
mov ebx, dword [esp + 0x18]
jne 0x10171143
movzx eax, byte [edi + 0x277]
mov edx, dword [esp + 0xc]
test al, al
jns 0x1017111a
mov edx, dword [edi + 0x26c]
mov eax, dword [edi + 0x270]
mov ecx, dword [esp + 0x1c]
push eax
push edx
push esi
call fcn.1014cca0
jmp 0x1017115b
mov ecx, dword [esp + 0x1c]
push 1
push 0x1025ad00
lea esi, [esp + 0x58]
push esi
call fcn.1014cca0
mov ebx, dword [esp + 0x18]
jmp 0x1017115b
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
cmp byte [esp + 0x5b], 0
mov eax, esi
jns 0x10171168
mov eax, dword [esp + 0x50]
push 2
push 0
push 0
push dword [esp + 0x30]
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.1014bf30
call dword [sym.imp.kernel32.dll_GetLastError]
cmp dword [edi + 0x254], 0xffffffff
je 0x101711d0
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
test ebx, ebx
je 0x101711f0
push ebx
call fcn.10216dd3
add esp, 4
jmp 0x101711f2
mov byte [edi], 0
cmp dword [edi + 0x278], 0
je 0x101712c8
cmp eax, 0x12
je 0x10170f37
jmp 0x101712f7
xor eax, eax
lea esi, [esp + 0x38]
mov ecx, esi
push eax
push ebx
call fcn.1014be70
mov ecx, edi
push esi
call fcn.1019ae80
test al, al
jne 0x10170f30
mov ebx, dword [edi + 4]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 0xffffffff
mov ecx, dword [esp + 0x1c]
push esi
lea eax, [esp + 0x30]
push eax
call fcn.1014d1e0
test bl, 0x10
lea esi, [esp + 0x50]
je 0x10171330
cmp byte [edi + 0x264], 0
je 0x10171330
cmp byte [esp + 0x37], 0
lea eax, [esp + 0x2c]
jns 0x10171262
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x10171330
mov ecx, dword [esp + 0x20]
call fcn.101714e0
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x288], eax
jb 0x101714d0
lea ecx, [eax + eax*2]
shl ecx, 2
add ecx, dword [edi + 0x284]
lea eax, [esp + 0x2c]
push eax
call fcn.1014be30
mov eax, dword [edi + 0x288]
mov edx, dword [edi + 0x290]
mov dword [esp + 0x10], eax
lea ecx, [eax - 1]
cmp edx, ecx
jne 0x10171309
mov eax, dword [esp + 8]
mov dword [eax], 0
jmp 0x10171318
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xb], 0
js 0x101712d8
mov byte [ecx + 0xb], 1
jmp 0x101712e8
mov dword [edi + 0x270], 1
mov ecx, dword [edi + 0x26c]
mov dword [ecx], 0x2a
cmp eax, 0x12
je 0x10170f37
cmp dword [edi + 0x27c], 0
je 0x10170f37
jmp 0x10171457
mov esi, edx
inc esi
mov eax, dword [esp + 8]
mov dword [eax], esi
lea esi, [esp + 0x50]
jne 0x1017131a
mov edx, ecx
cmp dword [esp + 0x10], edx
jb 0x101714cd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and ebx, 0x10
shr ebx, 4
mov ecx, edi
push ebx
call fcn.1019af80
test al, al
mov ebx, dword [esp + 0x18]
je 0x10171400
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x10171362
test eax, eax
jne 0x10171400
jmp 0x1017147f
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
mov ebx, esi
lea esi, [esp + 0x44]
mov ecx, esi
push 0x27
push str.api_ms_win_downlevel_shlwapi_l1_1_0.dll
call fcn.1014be70
mov ecx, ebx
push esi
call fcn.1015b480
mov ecx, esi
call fcn.1014bf30
cmp dword [esp + 0x54], 0
je 0x101713c5
mov ecx, ebx
push 0x1026568e
call fcn.1015b4e0
test eax, eax
je 0x101713c5
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xb], 0
lea edx, [esp + 0x38]
js 0x10171417
cmp byte [esp + 0x43], 0
jns 0x101713bf
mov edx, dword [esp + 0x38]
push ecx
push edx
call eax
jmp 0x101713ec
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xb], 0
mov eax, ecx
lea edx, [esp + 0x38]
jns 0x101713d7
mov eax, dword [ecx]
cmp byte [esp + 0x43], 0
mov ecx, edx
jns 0x101713e4
mov ecx, dword [esp + 0x38]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
mov esi, eax
lea ecx, [esp + 0x50]
call fcn.1015b430
cmp esi, 1
mov ebx, dword [esp + 0x18]
je 0x1017147f
lea ecx, [esp + 0x2c]
call fcn.1014bf30
lea ecx, [esp + 0x38]
call fcn.1014bf30
jmp 0x10170f37
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx]
cmp byte [esp + 0x43], 0
js 0x101713bb
jmp 0x101713bf
int3
mov edi, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
jmp 0x1017149e
push eax
call fcn.1019b170
add esp, 4
mov dword [edi + 0x280], eax
mov edi, dword [ebp + 8]
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
jmp 0x1017149e
lea esi, [esp + 0x2c]
mov edi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.1014be30
mov ecx, esi
call fcn.1014bf30
lea ecx, [esp + 0x38]
call fcn.1014bf30
lea ecx, [esp + 0x60]
call fcn.10160360
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.10205d16
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
int3
int3
int3
int3
int3