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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x1029ad64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x140
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x480]
push ebx
push eax
mov dword [ebp - 0x494], edi
mov dword [ebp - 0x484], ebx
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x100c14fe
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x310]
push eax
push 0x104
push edi
call esi
test eax, eax
je 0x100c159d
mov ecx, dword [ebp - 0x488]
lea edx, [ebp - 0x20c]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100c11c0
lea eax, [ebp - 0x328]
mov ecx, 0x10293440
push eax
call fcn.1006ee50
cmp dword [ebp - 0x314], 0x10
lea ecx, [ebp - 0x328]
mov edx, dword [ebp - 0x488]
cmovae ecx, dword [ebp - 0x328]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x100c11f8
lea ecx, [ebp - 0x328]
call fcn.10044260
lea eax, [ebp - 0x480]
mov dword [ebp - 0x480], 0x10
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x48c], eax
cmp eax, 0xffffffff
je 0x100c14f7
nop
lea eax, [ebp - 0x328]
or ebx, 1
push eax
mov ecx, 0x10293450
mov dword [ebp - 0x484], ebx
call fcn.10077c30
cmp dword [ebp - 0x314], 0x10
lea eax, [ebp - 0x328]
push 1
cmovae eax, dword [ebp - 0x328]
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x100c12ce
lea eax, [ebp - 0x340]
or ebx, 2
push eax
mov ecx, 0x10293460
mov dword [ebp - 0x484], ebx
call fcn.10086240
cmp dword [ebp - 0x32c], 0x10
lea eax, [ebp - 0x340]
push 2
cmovae eax, dword [ebp - 0x340]
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x100c12ce
xor bl, bl
jmp 0x100c12d0
mov bl, 1
mov eax, dword [ebp - 0x484]
test al, 2
je 0x100c133e
mov edx, dword [ebp - 0x32c]
and eax, 0xfffffffd
mov dword [ebp - 0x484], eax
cmp edx, 0x10
jb 0x100c1323
mov ecx, dword [ebp - 0x340]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100c1313
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100c14eb
push edx
push ecx
call fcn.10138f1a
mov eax, dword [ebp - 0x484]
add esp, 8
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0xf
mov byte [ebp - 0x340], 0
mov edx, dword [ebp - 0x314]
and eax, 0xfffffffe
mov dword [ebp - 0x484], eax
cmp edx, 0x10
jb 0x100c1381
mov ecx, dword [ebp - 0x328]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100c1377
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100c14eb
push edx
push ecx
call fcn.10138f1a
add esp, 8
test bl, bl
jne 0x100c14c9
test byte [ebp - 0x480], 0x10
je 0x100c14c9
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
push edi
call esi
test eax, eax
je 0x100c159d
mov edx, dword [ebp - 0x488]
lea ecx, [ebp - 0x454]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x100c13c0
lea eax, [ebp - 0x328]
mov ecx, 0x10293470
push eax
call fcn.10077c30
cmp dword [ebp - 0x314], 0x10
lea edx, [ebp - 0x328]
jb 0x100c144f
mov ebx, dword [ebp - 0x328]
mov edx, ebx
mov esi, ebx
mov al, byte [edx]
inc edx
test al, al
jne 0x100c13f8
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100c1408
mov ecx, edx
mov eax, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x314]
inc ecx
cmp ecx, 0x1000
jb 0x100c1443
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100c14eb
push ecx
push ebx
call fcn.10138f1a
add esp, 8
jmp 0x100c1477
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x100c1451
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100c1461
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x20c]
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x100c1480
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100c1490
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 1
push dword [ebp - 0x490]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.100c1140
mov edi, dword [ebp - 0x494]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x48c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x100c14f1
mov ebx, dword [ebp - 0x484]
jmp 0x100c1240
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ebp - 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x480]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100c1587
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
nop dword [eax]
test byte [ebp - 0x480], 0x10
jne 0x100c156e
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push edi
call ebx
test eax, eax
je 0x100c159d
mov eax, dword [ebp - 0x488]
lea edx, [ebp - 0x454]
nop
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x100c1550
lea eax, [ebp - 0x454]
push eax
call dword [ebp - 0x490]
add esp, 4
lea eax, [ebp - 0x480]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100c1520
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10139242
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10139242
mov esp, ebp
pop ebp
ret