Function at 0x10007310
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x158
mov eax, dword [0x1001734c]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
mov ebx, dword [esp + 0x168]
push ebp
mov ebp, dword [esp + 0x168]
cmp byte [ebp], 0
push esi
mov esi, dword [esp + 0x168]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
je 0x10007534
cmp byte [ebx], 0
je 0x10007534
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10007360
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x104
mov dword [esp + 0x18], edi
jge 0x10007533
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10007383
sub eax, edx
cmp eax, 0x104
jae 0x10007533
push 0x400
call fcn.1000bbf6
mov ebp, eax
mov edx, ebp
add esp, 4
mov dword [esp + 0x20], ebp
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x100073b2
cmp byte [edi + ebp - 1], 0x5c
je 0x100073e3
mov edi, ebp
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x100073d0
mov ax, word [0x10011c20]
mov word [edi], ax
mov edi, ebp
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x100073e8
mov edx, dword [esp + 0x10]
mov cx, word [0x10011fa8]
push ebx
push edx
push esi
mov word [edi], cx
call fcn.10006fe0
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x1000752a
cmp dword [esi + 0x38], 0
je 0x10007523
mov ecx, esi
call fcn.10002c20
test eax, eax
jne 0x10007523
cmp dword [esi + 0x18], eax
jne 0x10007523
lea ecx, [esp + 0x50]
push ecx
call fcn.10006f20
add esp, 4
test eax, eax
jne 0x1000750f
test byte [esp + 0x24], 0x10
je 0x1000750f
push 0x400
call fcn.1000bbf6
mov ebp, eax
mov edx, ebp
add esp, 4
mov eax, ebx
sub edx, ebx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10007480
mov edx, dword [esp + 0x18]
cmp byte [edx + ebp - 1], 0x5c
je 0x100074b3
mov edi, ebp
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x100074a0
mov ax, word [0x10011c20]
mov word [edi], ax
lea eax, [esp + 0x50]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x100074c0
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x100074d2
mov edx, dword [esp + 0x14]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push edx
call fcn.10007310
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
add esp, 0x10
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10007426
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
mov ecx, dword [esp + 0x160]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000bc08
add esp, 0x158
ret