Function at 0x10057580
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013b1e8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x101ba518]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x48], ebx
mov esi, ecx
mov dword [ebp - 0x5c], esi
push dword [ebp - 0x4c]
mov edx, dword [ebx + 4]
push ecx
mov ecx, dword [ebx]
call fcn.100162a0
mov eax, dword [ebx]
add esp, 8
mov dword [ebx + 4], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], 0x104
call fcn.100572e0
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x44]
lea ecx, [ebp - 0x58]
call fcn.10018960
mov ebx, dword [ebp - 0x58]
lea eax, [ebp - 0x44]
push ebx
push eax
push 0
mov ecx, esi
call fcn.10006500
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileNameW]
mov esi, eax
mov dword [ebp - 0x64], esi
cmp esi, 0xffffffff
jne 0x10057657
call edi
mov esi, dword [ebp - 0x5c]
cmp eax, 0xea
je 0x10057602
call fcn.10040440
mov edi, eax
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edi, eax
or esi, 0x3225
jmp 0x10057776
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x5c], esi
call fcn.1001d070
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
push ebx
lea ecx, [ebp - 0x28]
call fcn.10036490
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x48]
push eax
call fcn.10014bd0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 8
jb 0x100576a3
push dword [ebp - 0x28]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x54]
sub eax, ebx
sar eax, 1
mov dword [ebp - 0x44], eax
lea ecx, [ecx]
push eax
lea ecx, [ebp - 0x58]
call fcn.10018960
mov ebx, dword [ebp - 0x58]
lea eax, [ebp - 0x44]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileNameW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
jne 0x100576fb
cmp esi, 0x26
je 0x10057763
cmp esi, 0xea
jne 0x10057734
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x64]
jmp 0x100576c0
push ebx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.10036490
add esp, 4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
push eax
call fcn.10014bd0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 8
jb 0x1005772c
push dword [ebp - 0x28]
call fcn.10115284
add esp, 4
mov esi, dword [ebp - 0x64]
jmp 0x100576a3
mov edi, dword [ebp - 0x48]
push dword [ebp - 0x4c]
push ecx
mov edx, dword [edi + 4]
mov ecx, dword [edi]
call fcn.100162a0
mov eax, dword [edi]
add esp, 8
mov dword [edi + 4], eax
call fcn.10040440
mov edi, eax
mov dword [ebp - 0x5c], edx
or edi, esi
mov esi, edx
or esi, 0x3625
jmp 0x1005776a
xor edi, edi
mov esi, 0x80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.10019f30
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2c], 8
jb 0x1005778b
push dword [ebp - 0x40]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x100577c8
push ebx
call fcn.10115284
add esp, 4
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov edx, esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret