Function at 0x493ed0
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, 0x90
mov edi, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [esp + 0x88], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
lea eax, [esp + 0x30]
push 0x8b
push str....._base_files_file_enumerator_win.cc
push str.Next
push eax
call fcn.004733a0
add esp, 0x10
lea ecx, [esp + 0x50]
push 0
push 0
call fcn.004a1610
test byte [0x598b10], 0x19
jne 0x4945b1
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 0x493fa6
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x494549
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
js 0x4943bd
cmp byte [esp + 0x3b], 0
js 0x494050
cmp byte [edi], 0
je 0x493fe0
push dword [esp + 0x2c]
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x494270
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x494270
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], eax
je 0x494530
test eax, eax
mov ecx, dword [edi + 0x288]
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x494645
lea eax, [eax + eax*2]
shl eax, 2
add eax, dword [edi + 0x284]
mov ecx, dword [esp + 0x24]
push eax
call fcn.0045fc30
mov eax, dword [edi + 0x288]
mov edx, dword [edi + 0x290]
test edx, edx
je 0x494061
lea ecx, [edx - 1]
mov esi, dword [esp + 8]
mov dword [esi], ecx
cmp eax, edx
jb 0x49464e
cmp eax, ecx
jae 0x494074
jmp 0x494648
push dword [esp + 0x30]
call fcn.00528424
add esp, 4
jmp 0x493fa6
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx], ecx
mov edx, eax
cmp eax, ecx
jb 0x494648
cmp edx, 0x80000000
mov ebx, dword [esp + 0x20]
je 0x49464b
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
lea ecx, [ecx + ecx*2]
cmp byte [edx + ecx*4 + 0xb], 0
jns 0x4940a7
lea eax, [edx + ecx*4]
push dword [eax]
call fcn.00528424
add esp, 4
mov eax, dword [edi + 0x288]
mov ecx, eax
sub ecx, 1
mov edx, 0
cmovb ecx, edx
cmp ecx, 4
jb 0x4941b0
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 0x4941b0
mov edx, eax
shr edx, 2
add edx, eax
cmp edx, 4
mov eax, 3
cmovb edx, eax
cmp edx, ecx
jae 0x4941b0
inc edx
mov dword [esp + 0x10], edx
mov eax, edx
mov ecx, 0xc
mul ecx
jo 0x494514
mov ebx, eax
nop
push 0
push ebx
push 0x587578
call fcn.00495910
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x49415a
cmp byte [0x59cc3c], 0
je 0x49415a
call fcn.00537394
test eax, eax
je 0x49415a
mov ecx, eax
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
test eax, eax
jne 0x494120
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.00494880
add esp, 0x10
push 0
push dword [edi + 0x284]
push 0x587578
call fcn.00497f20
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 0x4941fa
test eax, eax
jne 0x494211
movzx eax, byte [edi + 0x277]
mov edx, dword [esp + 0x18]
test al, al
jns 0x4941f2
mov edx, dword [edi + 0x26c]
mov eax, dword [edi + 0x270]
mov ecx, dword [esp + 0x24]
push eax
push edx
jmp 0x494205
mov ecx, dword [esp + 0x24]
push 1
push 0x581962
lea eax, [esp + 0x38]
push eax
call fcn.00476250
jmp 0x49422e
call fcn.0047b030
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 0x49423d
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 0x494270
push dword [esp + 0x30]
call fcn.00528424
add esp, 4
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x254], 0xffffffff
je 0x494390
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
test ebx, ebx
je 0x494642
push ebx
call fcn.00542c14
add esp, 4
lea esi, [esp + 0x30]
mov ecx, esi
push eax
push ebx
call fcn.00474ed0
mov ecx, edi
push esi
call fcn.00494ba0
test al, al
jne 0x493f9b
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 0x4942fc
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.00476250
mov esi, 1
test bl, 0x10
je 0x4944c0
mov esi, 2
cmp byte [edi + 0x264], 0
je 0x4944c0
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x494335
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x4944c0
mov ebx, dword [esp + 0x28]
mov ecx, ebx
call fcn.00494760
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x288], eax
jb 0x494651
lea edx, [eax + eax*2]
shl edx, 2
add edx, dword [ebx]
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xb], 0
js 0x4943fd
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
movq xmm0, qword [ecx]
movq qword [edx], xmm0
jmp 0x49447e
mov byte [edi], 0
cmp dword [edi + 0x278], 0
je 0x4943a7
cmp eax, 0x12
je 0x493fa6
jmp 0x4943eb
cmp byte [edi + 0x277], 0
js 0x4943cc
mov byte [edi + 0x277], 1
mov ecx, dword [esp + 0x18]
jmp 0x4943dc
push dword [eax]
call fcn.00528424
add esp, 4
jmp 0x493f9b
mov dword [edi + 0x270], 1
mov ecx, dword [edi + 0x26c]
mov dword [ecx], 0x2a
cmp eax, 0x12
je 0x493fa6
cmp dword [edi + 0x27c], 0
je 0x493fa6
jmp 0x49455e
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
cmp ecx, 4
ja 0x494410
mov byte [edx + 0xb], cl
cmp edx, ebx
jbe 0x494462
jmp 0x494470
mov dword [esp + 0xc], ebx
cmp ecx, 0x7ffffff0
jae 0x494638
mov dword [esp + 0x14], edx
mov ebx, ecx
or ebx, 7
inc ebx
mov dword [esp + 0x10], ecx
js 0x49463d
lea eax, [ebx + ebx]
push eax
call fcn.005283f4
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 0x494470
lea eax, [edx + ecx*2]
add eax, 2
cmp eax, ebx
ja 0x494657
inc ecx
add ecx, ecx
push ecx
push ebx
push edx
call fcn.0052bc90
add esp, 0xc
mov ebx, dword [edi + 0x288]
mov edx, dword [edi + 0x290]
lea ecx, [ebx - 1]
cmp edx, ecx
jne 0x49449d
mov eax, dword [esp + 8]
mov dword [eax], 0
jmp 0x4944b0
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 0x4944b2
mov edx, ecx
cmp ebx, edx
jb 0x494654
nop word [eax + eax]
test dword [edi + 0x268], esi
mov ebx, dword [esp + 0x20]
je 0x493f8e
mov eax, dword [edi + 0x278]
cmp eax, 1
je 0x4944e9
test eax, eax
je 0x494549
call fcn.0047b030
jmp 0x493f8e
cmp byte [edi + 0x277], 0
mov eax, dword [esp + 0x18]
jns 0x4944fc
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp byte [esp + 0x3b], 0
lea ecx, [esp + 0x30]
jns 0x493f7d
mov ecx, dword [esp + 0x30]
jmp 0x493f7d
int3
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
jmp 0x494584
cmp byte [esp + 0x3b], 0
jns 0x494584
push dword [esp + 0x30]
call fcn.00528424
add esp, 4
jmp 0x494584
push eax
call fcn.0045dc70
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 [0x598b10], 0x19
jne 0x4945ed
lea ecx, [esp + 0x50]
call fcn.004a1a80
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.00528e13
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.00462090
add esp, 8
jmp 0x493f3b
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], 0x57f540
mov dword [esp + 8], 0x57d4a9
mov dword [esp + 4], 0x598b10
mov dword [esp], 0x45
call fcn.00433670
add esp, 0x18
jmp 0x49458d
call fcn.0053bf0b
call fcn.0042d55a
int3
int3
int3
int3
int3
int3
int3
int3