Function at 0x100c9a5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x1016034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
push 0x24c
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x250]
push ebx
push eax
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x270], ebx
cmp esi, ebx
je 0x100cd28
xor eax, eax
cmp ax, word [esi]
je 0x100cd28
push esi
call fcn.0100bfac
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100ca6e
test dword [ebp + 0x18], 1
je 0x100ca51
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x100cd32
lea eax, [ebp - 0x270]
push eax
push esi
call fcn.0100c01e
test eax, eax
je 0x100cade
cmp dword [ebp - 0x270], 0x80000008
jne 0x100ca42
push 0x1003960
push esi
call fcn.0100d51b
mov dword [ebp - 0x27c], eax
cmp eax, ebx
je 0x100ccbf
push ebx
push eax
call fcn.0100b46f
mov dword [ebp - 0x258], eax
cmp eax, ebx
je 0x100ccbf
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x100cc5b
push 0x34
lea eax, [ebp - 0x2b4]
push ebx
push eax
mov dword [ebp - 0x2b8], ebx
call sub.msvcrt.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_CompareStringW]
add esp, 0xc
jmp 0x100cb22
call edi
push esi
mov dword [ebp - 0x25c], eax
call fcn.0100bfac
test eax, eax
je 0x100ca6e
push dword [ebp - 0x25c]
push 0x10038b8
push 0x2000000
push 0x1016414
call fcn.0100b1ab
add esp, 0x10
push dword [ebp - 0x25c]
jmp 0x100cd2a
mov esi, dword [ebp - 0x280]
push esi
lea eax, [ebp - 0x2b8]
lea ecx, [ebp - 0x254]
call fcn.0100c8d1
mov dword [ebp - 0x25c], eax
cmp eax, 1
jne 0x100cbc6
test byte [ebp - 0x2b8], 0x10
je 0x100cba4
cmp dword [ebp - 0x278], 0
je 0x100cbc6
push 0xffffffffffffffff
push dword [ebp - 0x28c]
mov esi, 0x409
push 0xffffffffffffffff
push 0x10038b4
push eax
push esi
call ebx
dec eax
dec eax
je 0x100cbc6
push 0xffffffffffffffff
push dword [ebp - 0x28c]
push 0xffffffffffffffff
push 0x10038ac
push 1
push esi
call ebx
dec eax
dec eax
je 0x100cbc6
push dword [ebp - 0x268]
lea eax, [ebp - 0x2b8]
push dword [ebp - 0x264]
push eax
call dword [ebp - 0x278]
jmp 0x100cbc0
cmp dword [ebp - 0x264], 0
je 0x100cbc6
push dword [ebp - 0x268]
lea eax, [ebp - 0x2b8]
push eax
call dword [ebp - 0x264]
mov dword [ebp - 0x25c], eax
lea esi, [ebp - 0x2b8]
call fcn.0100c675
xor esi, esi
inc esi
cmp eax, esi
jne 0x100cbfb
cmp dword [ebp - 0x25c], esi
jne 0x100cc22
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, esi
je 0x100cb1c
cmp dword [ebp - 0x25c], esi
jne 0x100cc22
call edi
cmp eax, 0x12
jne 0x100cc12
mov dword [ebp - 0x26c], esi
jmp 0x100cc48
call edi
push eax
push dword [ebp - 0x258]
push 0x1003840
jmp 0x100cc30
call edi
push eax
push dword [ebp - 0x258]
push 0x1003750
push 0x2000000
push 0x1016414
mov dword [ebp - 0x260], eax
call fcn.0100b1ab
add esp, 0x14
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
jmp 0x100cce0
call edi
push eax
push dword [ebp - 0x258]
mov esi, 0x1016414
push 0x10036d8
push 0x2000000
push esi
mov dword [ebp - 0x260], eax
call fcn.0100b1ab
mov eax, dword [ebp - 0x258]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100cc8b
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x100cce0
push 0x1003670
push 0x3000000
push esi
call fcn.0100b1ab
add esp, 0xc
mov dword [ebp - 0x260], 0xce
jmp 0x100cce0
call edi
push eax
push esi
push 0x10035e8
push 0x2000000
push 0x1016414
mov dword [ebp - 0x260], eax
call fcn.0100b1ab
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebp - 0x27c], ebx
je 0x100cd00
push dword [ebp - 0x27c]
push ebx
call edi
push eax
call esi
cmp dword [ebp - 0x258], ebx
je 0x100cd14
push dword [ebp - 0x258]
push ebx
call edi
push eax
call esi
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x26c]
jmp 0x100cd32
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100a4c9
leave
ret 0x14