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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x100e03c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
and dword [ebp - 0x860], 0
test ecx, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x868], ecx
mov dword [ebp - 0x864], edx
je 0x1003806
push ecx
push eax
push 0x1001250
lea eax, [ebp - 0x30c]
push 0x208
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x14
jmp 0x1003819
push 0x208
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x30c]
push eax
push 0x1001248
lea eax, [ebp - 0x614]
push 0x208
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x10
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x614]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x85c], eax
je 0x1003c92
push esi
push edi
test byte [ebp - 0x854], 0x10
je 0x1003910
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x1001244
lea eax, [ebp - 0x828]
push eax
call esi
test eax, eax
je 0x1003c69
push 0x1001240
lea eax, [ebp - 0x828]
push eax
call esi
test eax, eax
je 0x1003c69
mov edi, dword [ebp + 0xc]
push 0x1001238
lea eax, [ebp - 0x828]
push eax
call esi
test eax, eax
jne 0x10038b7
xor edi, edi
inc edi
jmp 0x10038e2
push 0x1001230
lea eax, [ebp - 0x828]
push eax
call esi
test eax, eax
jne 0x10038cd
push 2
jmp 0x10038e1
push 0x1001228
lea eax, [ebp - 0x828]
push eax
call esi
test eax, eax
jne 0x10038e2
push 3
pop edi
push dword [ebp - 0x864]
lea eax, [ebp - 0x828]
push ebx
push eax
push edi
lea eax, [ebp - 0x30c]
push eax
call fcn.010037b2
test eax, eax
mov dword [ebp - 0x860], eax
jl 0x1003c90
jmp 0x1003c69
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x1003c69
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x714]
push eax
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.01008a64
add esp, 0x14
cmp byte [ebp - 0x104], 0
je 0x10039c9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x104]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x1003965
inc edi
mov eax, dword [ebx + 4]
test eax, eax
je 0x100397d
lea ecx, [ebp - 0x828]
push ecx
push eax
call esi
test eax, eax
jne 0x100397d
xor edi, edi
inc edi
mov eax, dword [ebx + 8]
test eax, eax
je 0x1003995
lea ecx, [ebp - 0x828]
push ecx
push eax
call esi
test eax, eax
jne 0x1003995
xor edi, edi
inc edi
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10039ad
lea ecx, [ebp - 0x828]
push ecx
push eax
call esi
test eax, eax
jne 0x10039ad
xor edi, edi
inc edi
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10039c5
lea ecx, [ebp - 0x828]
push ecx
push eax
call esi
test eax, eax
jne 0x10039c5
xor edi, edi
inc edi
test edi, edi
jne 0x1003a0d
cmp dword [ebx + 0x14], 1
jne 0x1003c69
cmp dword [ebp + 0xc], 2
jne 0x1003c69
push 0x1001220
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1003a0d
push 0x1001218
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1003c69
mov eax, dword [0x100e2c4]
mov ecx, dword [eax]
push 0x64c
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
je 0x1003c86
xor eax, eax
mov ecx, 0x193
mov edi, esi
rep stosd dword es:[edi], eax
inc eax
cmp dword [ebp + 0xc], eax
jne 0x1003ab3
and dword [esi + 0x630], 0
push 4
pop edi
push 0x100
push 0x100120c
lea eax, [esi + 0x410]
push eax
mov dword [esi + 0x634], edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebx + 4]
test eax, eax
je 0x1003a83
lea ecx, [ebp - 0x828]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1003a83
mov dword [esi + 0x630], edi
jmp 0x1003c38
mov eax, dword [ebx + 8]
test eax, eax
je 0x1003c38
lea ecx, [ebp - 0x828]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1003c38
mov dword [esi + 0x630], 3
jmp 0x1003c38
push 2
pop ecx
cmp dword [ebp + 0xc], ecx
jne 0x1003beb
push 0x100
lea ecx, [esi + 0x410]
push ecx
push dword [ebp - 0x868]
mov dword [esi + 0x630], eax
push eax
mov dword [esi + 0x634], eax
call fcn.01003743
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1003b0b
lea ecx, [ebp - 0x828]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1003b0b
mov dword [esi + 0x630], 6
jmp 0x1003c38
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1003b33
lea ecx, [ebp - 0x828]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1003b33
mov dword [esi + 0x630], 7
jmp 0x1003c38
cmp dword [ebx + 0x14], 0
je 0x1003c38
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x1001220
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
jne 0x1003b61
mov dword [esi + 0x630], 7
jmp 0x1003b7d
push 0x1001218
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
jne 0x1003b7d
mov dword [esi + 0x630], 6
xor edi, edi
cmp dword [0x100e2d4], edi
jbe 0x1003c38
and dword [ebp - 0x858], edi
mov ecx, dword [ebp - 0x858]
lea eax, [ebp - 0x40c]
push eax
mov eax, dword [0x100e2d8]
lea eax, [ecx + eax + 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1003bca
add dword [ebp - 0x858], 0x50c
inc edi
cmp edi, dword [0x100e2d4]
jb 0x1003b91
jmp 0x1003c38
imul edi, edi, 0x50c
add edi, dword [0x100e2d8]
push 0x100
push edi
lea eax, [esi + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x1003c38
cmp dword [ebp + 0xc], 3
jne 0x1003c38
push 0x100
lea eax, [esi + 0x410]
push eax
push dword [ebp - 0x868]
mov dword [esi + 0x630], ecx
push ecx
mov dword [esi + 0x634], ecx
call fcn.01003743
mov eax, dword [ebx + 4]
test eax, eax
je 0x1003c38
lea ecx, [ebp - 0x828]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1003c38
mov dword [esi + 0x630], 5
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x30c]
push eax
push 0x1001250
push 0x208
push esi
call sub.SHLWAPI.dll_wnsprintfA
mov eax, dword [ebp - 0x864]
mov ecx, dword [eax]
mov dword [esi + 0x648], ecx
add esp, 0x14
mov dword [eax], esi
lea eax, [ebp - 0x854]
push eax
push dword [ebp - 0x85c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100385e
jmp 0x1003c90
mov dword [ebp - 0x860], 0x8007000e
pop edi
pop esi
cmp dword [ebp - 0x85c], 0
pop ebx
je 0x1003ca8
push dword [ebp - 0x85c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x860]
call fcn.010086b7
leave
ret 0x14