Function at 0x1005b610
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x944
push ebx
mov ebx, dword [esp + 0x94c]
push esi
push edi
test ebx, ebx
jne 0x1005b630
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x944
ret
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x150]
lea edx, [esp + 0x150]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x150]
push ecx
push ebx
call sub.platform.dll_Ordinal_13
add esp, 8
test eax, eax
jne 0x1005b69d
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x150]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x150]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x1005b6be
pop edi
pop esi
pop ebx
add esp, 0x944
ret
mov byte [eax + 1], 0
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x550]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x150]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x550]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
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, str..a3x
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
jne 0x1005b756
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x944
ret
mov ebx, dword [esp + 0x960]
push ebp
mov ebp, dword [esp + 0x960]
mov al, byte [esp + 0x40]
lea ecx, [esp + 0x40]
test al, al
je 0x1005b78e
cmp al, 0x41
jl 0x1005b781
cmp al, 0x5a
jg 0x1005b781
movsx eax, al
add eax, 0x20
jmp 0x1005b784
movsx eax, al
mov byte [ecx], al
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x1005b771
lea edx, [esp + 0x40]
push str.google
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x1005b840
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x154]
lea edx, [esp + 0x154]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x554]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x158]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
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 + 0x968]
mov ecx, edx
mov edx, dword [0x107ab964]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x164]
push ebx
push ecx
push edx
push 0x10227334
call fcn.10029df0
mov esi, dword [esp + 0x30]
add esp, 0x20
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1005b765
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x944
ret