Function at 0x1011b28
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x1023018]
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 0x1011eab
xor eax, eax
cmp ax, word [esi]
je 0x1011eab
push esi
call fcn.010105ba
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1011bf1
test dword [ebp + 0x18], 1
je 0x1011bd4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x1011eb5
lea eax, [ebp - 0x270]
push eax
push esi
call fcn.0101062c
test eax, eax
je 0x1011c61
cmp dword [ebp - 0x270], 0x80000008
jne 0x1011bc5
push 0x1002890
push esi
call fcn.0101421f
mov dword [ebp - 0x27c], eax
cmp eax, ebx
je 0x1011e42
push ebx
push eax
call fcn.0101139f
mov dword [ebp - 0x258], eax
cmp eax, ebx
je 0x1011e42
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 0x1011dde
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 0x1011ca5
call edi
push esi
mov dword [ebp - 0x25c], eax
call fcn.010105ba
test eax, eax
je 0x1011bf1
push dword [ebp - 0x25c]
push 0x10027e8
push 0x2000000
push 0x102373c
call fcn.0100a7e5
add esp, 0x10
push dword [ebp - 0x25c]
jmp 0x1011ead
mov esi, dword [ebp - 0x280]
push esi
lea eax, [ebp - 0x2b8]
lea ecx, [ebp - 0x254]
call fcn.01011a54
mov dword [ebp - 0x25c], eax
cmp eax, 1
jne 0x1011d49
test byte [ebp - 0x2b8], 0x10
je 0x1011d27
cmp dword [ebp - 0x278], 0
je 0x1011d49
push 0xffffffffffffffff
push dword [ebp - 0x28c]
mov esi, 0x409
push 0xffffffffffffffff
push 0x10027e4
push eax
push esi
call ebx
dec eax
dec eax
je 0x1011d49
push 0xffffffffffffffff
push dword [ebp - 0x28c]
push 0xffffffffffffffff
push 0x10027dc
push 1
push esi
call ebx
dec eax
dec eax
je 0x1011d49
push dword [ebp - 0x268]
lea eax, [ebp - 0x2b8]
push dword [ebp - 0x264]
push eax
call dword [ebp - 0x278]
jmp 0x1011d43
cmp dword [ebp - 0x264], 0
je 0x1011d49
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.01011754
xor esi, esi
inc esi
cmp eax, esi
jne 0x1011d7e
cmp dword [ebp - 0x25c], esi
jne 0x1011da5
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, esi
je 0x1011c9f
cmp dword [ebp - 0x25c], esi
jne 0x1011da5
call edi
cmp eax, 0x12
jne 0x1011d95
mov dword [ebp - 0x26c], esi
jmp 0x1011dcb
call edi
push eax
push dword [ebp - 0x258]
push 0x1002770
jmp 0x1011db3
call edi
push eax
push dword [ebp - 0x258]
push 0x1002680
push 0x2000000
push 0x102373c
mov dword [ebp - 0x260], eax
call fcn.0100a7e5
add esp, 0x14
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
jmp 0x1011e63
call edi
push eax
push dword [ebp - 0x258]
mov esi, 0x102373c
push 0x1002608
push 0x2000000
push esi
mov dword [ebp - 0x260], eax
call fcn.0100a7e5
mov eax, dword [ebp - 0x258]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1011e0e
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x1011e63
push 0x10025a0
push 0x3000000
push esi
call fcn.0100a7e5
add esp, 0xc
mov dword [ebp - 0x260], 0xce
jmp 0x1011e63
call edi
push eax
push esi
push 0x1002518
push 0x2000000
push 0x102373c
mov dword [ebp - 0x260], eax
call fcn.0100a7e5
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 0x1011e83
push dword [ebp - 0x27c]
push ebx
call edi
push eax
call esi
cmp dword [ebp - 0x258], ebx
je 0x1011e97
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 0x1011eb5
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.0100b8d5
leave
ret 0x14