Function at 0x579df4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x25c
mov ebx, eax
mov ebp, ecx
test eax, eax
je 0x579e0b
cmp byte [eax], 0
jne 0x579e40
mov dword [esp], 2
call fcn.00505cd8
test ebp, ebp
je 0x579e2f
mov dword [esp + 8], ebp
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call fcn.0053f124
mov eax, 1
add esp, 0x25c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov eax, dword [0x68cbb4]
mov dword [esp + 0x1c], edx
call dword [eax + 0x30]
push esi
test ah, 4
mov edx, dword [esp + 0x1c]
jne 0x579ec4
mov dword [esp], ebx
mov eax, dword [0x68cbb4]
mov dword [esp + 0x1c], edx
call dword [eax + 0x58]
push ecx
test eax, eax
mov edx, dword [esp + 0x1c]
jne 0x579edc
mov dword [esp + 0x1c], edx
call sub.KERNEL32.dll_GetLastError
mov dword [esp], eax
call fcn.0057c980
call fcn.00505cc8
cmp eax, 0xd
mov edx, dword [esp + 0x1c]
je 0x579eec
mov dword [esp + 0x1c], edx
call fcn.00505cc8
cmp eax, 0x5d
mov edx, dword [esp + 0x1c]
je 0x57a0c0
test edx, edx
je 0x579e17
call fcn.00505cc8
cmp eax, 0x11
jne 0x579e17
jmp 0x579e2f
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00577918
test eax, eax
mov edx, dword [esp + 0x1c]
jne 0x579e71
xor eax, eax
add esp, 0x25c
pop ebx
pop esi
pop edi
pop ebp
mov dword [esp], ebx
mov eax, dword [0x68cbb4]
mov dword [esp + 0x1c], edx
call dword [eax + 0x30]
push edx
mov esi, eax
cmp eax, 0xffffffff
mov edx, dword [esp + 0x1c]
je 0x579e90
test al, 0x10
je 0x57a0d5
test ah, 4
jne 0x57a0e6
test esi, 1
je 0x579f78
and esi, 0xfffffffe
mov dword [esp + 4], esi
mov dword [esp], ebx
mov eax, dword [0x68cbb4]
mov dword [esp + 0x1c], edx
call dword [eax + 0x64]
sub esp, 8
test eax, eax
je 0x579e17
mov dword [esp], ebx
mov eax, dword [0x68cbb4]
call dword [eax + 0x58]
push edi
test eax, eax
jne 0x579edc
call sub.KERNEL32.dll_GetLastError
mov dword [esp], eax
call fcn.0057c980
or esi, 1
mov dword [esp + 4], esi
mov dword [esp], ebx
mov eax, dword [0x68cbb4]
call dword [eax + 0x64]
sub esp, 8
mov edx, dword [esp + 0x1c]
nop
mov dword [esp + 0x1c], edx
call fcn.0053eaac
cmp eax, 2
mov edx, dword [esp + 0x1c]
je 0x579e90
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.004fe628
xor eax, eax
mov ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
lea esi, [ecx - 1]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
lea ecx, [esp + 0x3c]
mov dword [esp], ecx
call fcn.004fe644
test esi, esi
mov edx, dword [esp + 0x1c]
jle 0x579fed
cmp byte [eax + esi - 1], 0x5c
je 0x579fed
mov dword [esp + 8], 1
mov dword [esp + 4], 0x62d652
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.004fe644
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], 3
mov dword [esp + 4], 0x62d654
lea ecx, [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 0x1c], edx
call fcn.004fe644
lea ecx, [esp + 0x110]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
mov dword [esp + 0x24], eax
inc eax
mov edx, dword [esp + 0x1c]
je 0x57a0a7
lea eax, [esp + 0x13c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x2c], edx
lea esi, [esi]
mov esi, dword [esp + 0x20]
mov edi, 0x62d658
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
je 0x57a070
mov edi, 0x62d65a
mov esi, dword [esp + 0x20]
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
jne 0x57a10b
lea ecx, [esp + 0x110]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
test eax, eax
jne 0x57a048
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 0x1c], edx
call sub.KERNEL32.dll_FindClose
push esi
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 0x1c], edx
call fcn.004fe768
mov edx, dword [esp + 0x1c]
jmp 0x579e90
mov dword [esp], 0x11
call fcn.00505cd8
mov edx, dword [esp + 0x1c]
jmp 0x579ea6
mov dword [esp], 0x14
call fcn.00505cd8
jmp 0x579e17
mov dword [esp + 4], 1
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call fcn.00577918
test eax, eax
mov edx, dword [esp + 0x1c]
je 0x579f18
jmp 0x579e17
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp], 0x11
mov dword [esp + 0x1c], edx
call fcn.00505cd8
mov edx, dword [esp + 0x1c]
jmp 0x57a092