Function at 0x10015700
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x45c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
push edi
lea eax, [ebp - 0x468]
push str._s.
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x468]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
je 0x1001595e
mov dword [ebp - 4], 0
test byte [ebp - 0x15c], 0x10
je 0x100157fb
mov esi, 0x10031888
lea eax, [ebp - 0x130]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x100157a2
test cl, cl
je 0x1001579e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x100157a2
add eax, 2
add esi, 2
test cl, cl
jne 0x1001577e
xor eax, eax
jmp 0x100157a7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10015936
mov esi, 0x10031884
lea eax, [ebp - 0x130]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x100157de
test cl, cl
je 0x100157da
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x100157de
add eax, 2
add esi, 2
test cl, cl
jne 0x100157ba
xor eax, eax
jmp 0x100157e3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10015936
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0
jmp 0x1001581d
mov ecx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x13c]
test ecx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], eax
jbe 0x1001581d
or eax, 0x80000000
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x210]
mov ecx, eax
and ecx, 0xf
test cl, cl
jne 0x100158a6
add eax, 0x10
mov edx, eax
shl edx, 4
add edx, eax
lea eax, [eax + edx*8]
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov eax, dword [edi + 0x210]
mov ecx, eax
mov esi, dword [edi + 0x20c]
shl ecx, 4
add ecx, eax
mov edi, ebx
add esp, 4
lea ecx, [eax + ecx*8]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov ecx, 0x890
mov edx, dword [esi + 0x210]
mov edi, edx
shl edi, 4
add edi, edx
lea edx, [edx + edi*8]
lea edi, [ebx + edx*4]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x20c]
push eax
call fcn.10010220
add esp, 4
mov dword [esi + 0x20c], ebx
mov edi, esi
mov eax, dword [edi + 0x210]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [eax + ecx*8]
mov ecx, dword [edi + 0x20c]
inc eax
lea ebx, [ecx + edx*4]
lea edx, [ebp - 0x130]
mov dword [edi + 0x210], eax
push edx
push edi
lea eax, [ebp - 0x260]
push 0x10030690
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [ebp - 0x130]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x148]
mov edi, dword [ebp + 8]
mov dword [ebx + 0x214], eax
mov ecx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x218], ecx
mov dword [ebx + 0x210], edx
mov dword [ebx + 0x20c], eax
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x15c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10015766
jmp 0x10015957
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret