Function at 0x10118f5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x1022018]
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 0x1011c78
xor eax, eax
cmp ax, word [esi]
je 0x1011c78
push esi
call fcn.0101038a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10119be
test dword [ebp + 0x18], 1
je 0x10119a1
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x1011c82
lea eax, [ebp - 0x270]
push eax
push esi
call fcn.010103fc
test eax, eax
je 0x1011a2e
cmp dword [ebp - 0x270], 0x80000008
jne 0x1011992
push 0x1002830
push esi
call fcn.0101405b
mov dword [ebp - 0x27c], eax
cmp eax, ebx
je 0x1011c0f
push ebx
push eax
call fcn.0101116c
mov dword [ebp - 0x258], eax
cmp eax, ebx
je 0x1011c0f
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 0x1011bab
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 0x1011a72
call edi
push esi
mov dword [ebp - 0x25c], eax
call fcn.0101038a
test eax, eax
je 0x10119be
push dword [ebp - 0x25c]
push 0x1002788
push 0x2000000
push 0x102273c
call fcn.0100a624
add esp, 0x10
push dword [ebp - 0x25c]
jmp 0x1011c7a
mov esi, dword [ebp - 0x280]
push esi
lea eax, [ebp - 0x2b8]
lea ecx, [ebp - 0x254]
call fcn.01011821
mov dword [ebp - 0x25c], eax
cmp eax, 1
jne 0x1011b16
test byte [ebp - 0x2b8], 0x10
je 0x1011af4
cmp dword [ebp - 0x278], 0
je 0x1011b16
push 0xffffffffffffffff
push dword [ebp - 0x28c]
mov esi, 0x409
push 0xffffffffffffffff
push 0x1002784
push eax
push esi
call ebx
dec eax
dec eax
je 0x1011b16
push 0xffffffffffffffff
push dword [ebp - 0x28c]
push 0xffffffffffffffff
push 0x100277c
push 1
push esi
call ebx
dec eax
dec eax
je 0x1011b16
push dword [ebp - 0x268]
lea eax, [ebp - 0x2b8]
push dword [ebp - 0x264]
push eax
call dword [ebp - 0x278]
jmp 0x1011b10
cmp dword [ebp - 0x264], 0
je 0x1011b16
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.01011521
xor esi, esi
inc esi
cmp eax, esi
jne 0x1011b4b
cmp dword [ebp - 0x25c], esi
jne 0x1011b72
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, esi
je 0x1011a6c
cmp dword [ebp - 0x25c], esi
jne 0x1011b72
call edi
cmp eax, 0x12
jne 0x1011b62
mov dword [ebp - 0x26c], esi
jmp 0x1011b98
call edi
push eax
push dword [ebp - 0x258]
push 0x1002710
jmp 0x1011b80
call edi
push eax
push dword [ebp - 0x258]
push 0x1002620
push 0x2000000
push 0x102273c
mov dword [ebp - 0x260], eax
call fcn.0100a624
add esp, 0x14
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
jmp 0x1011c30
call edi
push eax
push dword [ebp - 0x258]
mov esi, 0x102273c
push 0x10025a8
push 0x2000000
push esi
mov dword [ebp - 0x260], eax
call fcn.0100a624
mov eax, dword [ebp - 0x258]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1011bdb
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x1011c30
push 0x1002540
push 0x3000000
push esi
call fcn.0100a624
add esp, 0xc
mov dword [ebp - 0x260], 0xce
jmp 0x1011c30
call edi
push eax
push esi
push 0x10024b8
push 0x2000000
push 0x102273c
mov dword [ebp - 0x260], eax
call fcn.0100a624
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 0x1011c50
push dword [ebp - 0x27c]
push ebx
call edi
push eax
call esi
cmp dword [ebp - 0x258], ebx
je 0x1011c64
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 0x1011c82
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.0100b6a5
leave
ret 0x14