Function at 0x1011440
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [0x1002154]
mov dword [ebp - 0xc], esi
mov esi, dword [0x1002158]
push edi
mov dword [ebp - 8], esi
mov esi, 0x1002144
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], edx
movsd dword es:[edi], dword [esi]
cmp eax, edx
je 0x1011582
xor esi, esi
cmp si, word [eax]
je 0x1011582
cmp ecx, edx
je 0x10113fb
mov dword [ecx], edx
push ebx
push edx
push eax
call fcn.01010fc6
mov dword [ebp - 0x24], eax
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jne 0x1011443
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1011426
and eax, ebx
or eax, edi
test eax, eax
jge 0x1011436
call esi
test eax, eax
jle 0x1011432
and eax, ebx
or eax, edi
mov esi, eax
jmp 0x101143b
mov esi, 0x80004005
test esi, esi
jl 0x1011556
mov eax, dword [ebp - 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1011449
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x101150a
mov esi, dword [sym.imp.msvcrt.dll__wcsnicmp]
push 3
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x24]
call esi
add esp, 0xc
test eax, eax
je 0x101150a
push 7
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
call esi
add esp, 0xc
test eax, eax
je 0x101150a
and dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
call fcn.01011381
mov esi, eax
test esi, esi
jl 0x1011556
cmp dword [ebp - 0x2c], 1
lea eax, [ebp - 0x20]
push eax
jne 0x10114e1
mov eax, dword [ebp - 0x24]
add eax, 2
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.01010e95
mov esi, eax
test esi, esi
jl 0x1011556
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1011504
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
mov dword [eax], ecx
jmp 0x1011504
push dword [ebp - 0x24]
lea eax, [ebp - 0xc]
push eax
call fcn.01010e95
mov esi, eax
test esi, esi
jl 0x1011556
cmp dword [ebp - 0x28], 0
je 0x1011504
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
add eax, 8
mov dword [ecx], eax
cmp dword [ebp - 0x20], 0
jne 0x101155a
push dword [ebp - 0x30]
call fcn.0101492d
mov dword [ebp - 0x20], eax
test eax, eax
je 0x101151d
xor esi, esi
jmp 0x1011548
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x101152f
and eax, ebx
or eax, edi
test eax, eax
jge 0x101153f
call esi
test eax, eax
jle 0x101153b
and eax, ebx
or eax, edi
mov esi, eax
jmp 0x1011544
mov esi, 0x80004005
test esi, esi
jl 0x1011556
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x101155a
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
jmp 0x101155a
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x24], 0
pop ebx
je 0x1011573
push dword [ebp - 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x20]
jmp 0x101158c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100b8d5
leave
ret 8