Function at 0x1005a5c0
Capabilities:
Enumerate files on windows

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x944
test edx, edx
push ebx
push ebp
push esi
push edi
je 0x1005a7e9
mov ebp, dword [esp + 0x958]
test ebp, ebp
je 0x1005a7e9
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x554]
lea ebx, [esp + 0x554]
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0x554]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x558]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x1005a7e9
mov ebx, dword [esp + 0x970]
mov esi, 0x10232580
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1005a69b
test cl, cl
je 0x1005a697
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1005a69b
add eax, 2
add esi, 2
test cl, cl
jne 0x1005a677
xor eax, eax
jmp 0x1005a6a0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005a7c5
mov esi, 0x1023257c
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1005a6d5
test cl, cl
je 0x1005a6d1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1005a6d5
add eax, 2
add esi, 2
test cl, cl
jne 0x1005a6b1
xor eax, eax
jmp 0x1005a6da
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005a7c5
mov eax, dword [esp + 0x14]
and eax, 0x10
cmp al, 0x10
je 0x1005a7c5
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x154]
lea edx, [esp + 0x154]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x158]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1022722c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x158]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x970]
mov ecx, edx
mov edx, dword [esp + 0x968]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x96c]
push eax
mov eax, dword [esp + 0x968]
push ecx
push edx
mov edx, dword [0x107ab964]
lea ecx, [esp + 0x164]
push eax
push ecx
push edx
push 0x10227334
call fcn.10029df0
add esp, 0x20
test eax, eax
je 0x1005a7de
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1005a7f6
jmp 0x1005a66e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x944
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x944
ret