Function at 0x4371f0
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 ebx, ecx
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [esp + 0x88], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x40]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x30]
push 0x85
push str..._.._base_files_file_enumerator_win.cc
push str.Next
push edi
call fcn.00460cb0
add esp, 0x10
mov ecx, esi
mov esi, edi
mov edi, ebx
push 0
push esi
call fcn.00460cf0
lea eax, [ebx + 4]
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x28c]
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x258]
mov dword [esp + 4], eax
lea eax, [ebx + 0x274]
mov dword [esp + 8], eax
lea eax, [ebx + 0x30]
mov dword [esp + 0x14], eax
xor ebx, ebx
dec ebx
cmp byte [edi], 0
je 0x4372bb
push dword [esp + 0x10]
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x437388
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x437388
mov eax, dword [edi + 0x298]
cmp dword [edi + 0x294], eax
je 0x437572
test eax, eax
mov ecx, dword [edi + 0x290]
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x43759f
lea eax, [eax + eax*2]
shl eax, 2
add eax, dword [edi + 0x28c]
mov ecx, dword [esp + 4]
push eax
call fcn.00426a40
mov ecx, dword [esp + 0xc]
call fcn.004378a0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov eax, dword [edi + 0x280]
cmp eax, 1
je 0x43733e
test eax, eax
jne 0x437351
movzx eax, byte [edi + 0x27f]
mov edx, dword [esp + 8]
test al, al
jns 0x437336
mov edx, dword [edi + 0x274]
mov eax, dword [edi + 0x278]
mov ecx, dword [esp + 4]
push eax
push edx
jmp 0x437349
mov ecx, dword [esp + 4]
push 1
push 0x4dc070
push esi
call fcn.00454130
jmp 0x437358
mov ecx, esi
call fcn.004538e0
cmp byte [esp + 0x3b], 0
mov eax, esi
jns 0x437365
mov eax, dword [esp + 0x30]
push 2
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x1c]
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.00453a30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x254], 0xffffffff
je 0x4373de
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov eax, ebx
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4375a2
push eax
call fcn.00488da9
add esp, 4
mov ecx, esi
push eax
push dword [esp + 0x18]
call fcn.00453970
mov ecx, edi
push esi
call fcn.00437930
test al, al
je 0x43742b
mov ecx, esi
call fcn.00453a30
jmp 0x437283
mov byte [edi], 0
cmp dword [edi + 0x280], 0
jne 0x437410
mov ecx, dword [esp + 8]
cmp byte [ecx + 0xb], 0
js 0x4373fa
mov byte [ecx + 0xb], 1
jmp 0x43740a
mov dword [edi + 0x278], 1
mov ecx, dword [edi + 0x274]
mov dword [ecx], 0x2a
cmp eax, 0x12
je 0x437283
cmp dword [edi + 0x284], 0
je 0x437283
jmp 0x437563
mov eax, esi
mov ecx, dword [edi + 4]
mov esi, ebx
mov ebx, ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 4]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00427500
test bl, 0x10
je 0x437489
cmp byte [edi + 0x264], 0
je 0x4374da
cmp byte [esp + 0x2f], 0
lea eax, [esp + 0x24]
jns 0x43746c
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x4374da
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x24]
push eax
call fcn.00437680
jmp 0x4374da
mov ecx, edi
push 0
call fcn.00437a20
test al, al
je 0x4374da
mov eax, dword [edi + 0x26c]
cmp dword [edi + 0x268], 1
sbb eax, 0
jl 0x4374da
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004356b0
add esp, 8
mov eax, dword [esp + 0x18]
cmp eax, dword [edi + 0x268]
mov eax, dword [esp + 0x1c]
sbb eax, dword [edi + 0x26c]
jl 0x43751f
and ebx, 0x10
shr ebx, 4
mov ecx, edi
push ebx
call fcn.00437a20
test al, al
je 0x43751f
mov eax, dword [edi + 0x280]
cmp eax, 1
jne 0x437538
mov ecx, dword [esp + 8]
cmp byte [ecx + 0xb], 0
mov eax, ecx
js 0x43753e
cmp byte [esp + 0x3b], 0
lea ecx, [esp + 0x30]
jns 0x437512
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x437542
lea ecx, [esp + 0x24]
call fcn.00453a30
lea esi, [esp + 0x30]
mov ecx, esi
call fcn.00453a30
jmp 0x437280
test eax, eax
je 0x437542
jmp 0x43751f
mov eax, dword [ecx]
jmp 0x437503
lea esi, [esp + 0x24]
mov edi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.00453900
mov ecx, esi
call fcn.00453a30
lea ecx, [esp + 0x30]
call fcn.00453a30
jmp 0x43757c
push eax
call fcn.00436590
add esp, 4
mov dword [edi + 0x288], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004538e0
lea ecx, [esp + 0x40]
call fcn.00460d50
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.0046f8c3
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3
int3