Function at 0x488f80
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, 0x70
mov edi, ecx
mov eax, dword [0x754040]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x30]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x20]
push 0x8b
push 0x6e0d3f
push 0x6e0d67
push ebx
call fcn.005080c0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004fdc20
lea eax, [edi + 0x284]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x258]
mov dword [esp + 0xc], eax
lea eax, [edi + 0x26c]
mov dword [esp + 8], eax
lea eax, [edi + 4]
mov dword [esp + 0x18], eax
lea eax, [edi + 0x30]
mov dword [esp + 0x1c], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], edi
cmp byte [edi], 0
je 0x48915f
push dword [esp + 0x18]
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x48913b
call esi
cmp dword [edi + 0x254], 0xffffffff
je 0x489179
mov ebx, edi
xor edi, edi
dec edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov esi, dword [esp + 0x1c]
push esi
call fcn.0056ac44
add esp, 4
lea ecx, [esp + 0x20]
push eax
push esi
call fcn.00508430
mov ecx, ebx
lea ebx, [esp + 0x20]
push ebx
call fcn.0048a6c0
test al, al
jne 0x489125
mov edx, ebx
mov eax, dword [esp + 0x18]
mov ebx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov ecx, dword [esp + 0xc]
mov esi, edx
push edx
push eax
call fcn.00491990
test bl, 0x10
mov edi, dword [esp + 0x14]
jne 0x4891cc
and ebx, 0x10
shr ebx, 4
mov ecx, edi
push ebx
call fcn.0048a7a0
test al, al
mov ebx, esi
je 0x48911d
mov eax, dword [edi + 0x278]
cmp eax, 1
jne 0x489156
cmp byte [edi + 0x277], 0
mov eax, dword [esp + 8]
js 0x489320
cmp byte [esp + 0x2b], 0
mov ecx, ebx
jns 0x4890e6
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
jne 0x48911d
lea ecx, [esp + 0x20]
call fcn.00508510
lea ecx, [esp + 0x30]
call fcn.004fdc90
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00550b46
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [ebp + 8]
call fcn.00508510
mov ecx, ebx
call fcn.00508510
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x14]
jmp 0x48900b
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
jmp 0x48902c
test eax, eax
je 0x4890f3
jmp 0x489336
mov eax, dword [edi + 0x28c]
mov ecx, dword [edi + 0x290]
cmp eax, ecx
jne 0x4891de
mov ecx, dword [ebp + 8]
call fcn.005083a0
jmp 0x4890fc
mov byte [edi], 0
cmp dword [edi + 0x278], 0
jne 0x48919f
cmp byte [edi + 0x277], 0
js 0x4891ba
mov byte [edi + 0x277], 1
mov ecx, dword [esp + 8]
mov dword [ecx], 0x2a
cmp eax, 0x12
je 0x48900b
cmp dword [edi + 0x27c], 0
je 0x48900b
jmp 0x48930c
mov dword [edi + 0x270], 1
mov ecx, dword [edi + 0x26c]
jmp 0x489199
cmp byte [edi + 0x264], 1
jne 0x4890a5
jmp 0x4893a4
mov esi, ebx
mov ebx, dword [edi + 0x288]
mov edx, 0
cmova edx, ebx
sub edx, eax
add edx, ecx
test edx, edx
jle 0x489303
add eax, edx
dec eax
xor edx, edx
div ebx
cmp edx, ecx
je 0x489306
mov eax, dword [edi + 0x284]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0xc]
push eax
call fcn.00508530
mov eax, dword [edi + 0x290]
cmp dword [edi + 0x28c], eax
je 0x489309
mov ebx, esi
test eax, eax
je 0x48932b
lea edx, [eax - 1]
mov dword [edi + 0x290], edx
mov ecx, dword [esp + 0x10]
push eax
push edx
call fcn.004893e0
mov eax, dword [edi + 0x288]
cmp eax, 5
jae 0x489353
xor eax, eax
dec eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x278]
test eax, eax
jne 0x4892e9
movsx eax, byte [edi + 0x277]
mov edx, dword [esp + 8]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jns 0x489298
mov eax, dword [edi + 0x270]
mov edx, dword [edi + 0x26c]
test eax, eax
js 0x489301
sete cl
test edx, edx
setne ch
or ch, cl
je 0x489301
mov ecx, dword [esp + 0xc]
push eax
push edx
push ebx
call fcn.00509ca0
cmp byte [esp + 0x2b], 0
mov eax, ebx
jns 0x4892c1
mov eax, dword [esp + 0x20]
push 2
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x24]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [edi + 0x254], eax
mov byte [edi], 1
mov ecx, ebx
call fcn.00508510
jmp 0x48902c
cmp eax, 1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x489340
mov ecx, dword [esp + 0xc]
push 1
push 0x6d30b0
jmp 0x4892ae
ud2
int3
int3
int3
push eax
call fcn.00486b10
add esp, 4
mov dword [edi + 0x280], eax
jmp 0x48916f
mov eax, dword [esp + 8]
mov eax, dword [eax]
jmp 0x4890d9
mov eax, dword [edi + 0x288]
jmp 0x48923b
call fcn.005cf110
jmp 0x48911d
call fcn.005cf110
lea ecx, [esp + 0x20]
call fcn.005083a0
jmp 0x4892b4
mov edx, dword [edi + 0x28c]
mov ebx, dword [edi + 0x290]
xor ecx, ecx
cmp edx, ebx
cmova ecx, eax
sub ecx, edx
add ecx, ebx
mov ebx, esi
dec eax
mov edx, eax
sub edx, ecx
cmp edx, ecx
jb 0x48925e
mov ebx, ecx
shr ebx, 2
add ebx, ecx
cmp ebx, 4
mov edx, 3
cmovae edx, ebx
mov ebx, esi
cmp edx, eax
jae 0x48925e
mov ecx, dword [esp + 0x10]
push edx
call fcn.005ca040
jmp 0x48925e
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x4893af
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
mov edi, dword [esp + 0x14]
jb 0x4890a5
mov ecx, dword [esp + 0x10]
push dword [ebp + 8]
call fcn.004894d0
jmp 0x4890a5