Function at 0x101142d
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 0x101156f
xor esi, esi
cmp si, word [eax]
je 0x101156f
cmp ecx, edx
je 0x10113e8
mov dword [ecx], edx
push ebx
push edx
push eax
call fcn.01010fb3
mov dword [ebp - 0x24], eax
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jne 0x1011430
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1011413
and eax, ebx
or eax, edi
test eax, eax
jge 0x1011423
call esi
test eax, eax
jle 0x101141f
and eax, ebx
or eax, edi
mov esi, eax
jmp 0x1011428
mov esi, 0x80004005
test esi, esi
jl 0x1011543
mov eax, dword [ebp - 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1011436
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x10114f7
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 0x10114f7
push 7
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
call esi
add esp, 0xc
test eax, eax
je 0x10114f7
and dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
call fcn.0101136e
mov esi, eax
test esi, esi
jl 0x1011543
cmp dword [ebp - 0x2c], 1
lea eax, [ebp - 0x20]
push eax
jne 0x10114ce
mov eax, dword [ebp - 0x24]
add eax, 2
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.01010e85
mov esi, eax
test esi, esi
jl 0x1011543
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10114f1
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
mov dword [eax], ecx
jmp 0x10114f1
push dword [ebp - 0x24]
lea eax, [ebp - 0xc]
push eax
call fcn.01010e85
mov esi, eax
test esi, esi
jl 0x1011543
cmp dword [ebp - 0x28], 0
je 0x10114f1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
add eax, 8
mov dword [ecx], eax
cmp dword [ebp - 0x20], 0
jne 0x1011547
push dword [ebp - 0x30]
call fcn.0101491a
mov dword [ebp - 0x20], eax
test eax, eax
je 0x101150a
xor esi, esi
jmp 0x1011535
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x101151c
and eax, ebx
or eax, edi
test eax, eax
jge 0x101152c
call esi
test eax, eax
jle 0x1011528
and eax, ebx
or eax, edi
mov esi, eax
jmp 0x1011531
mov esi, 0x80004005
test esi, esi
jl 0x1011543
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1011547
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
jmp 0x1011547
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x24], 0
pop ebx
je 0x1011560
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 0x1011579
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.0100b8c5
leave
ret 8