Function at 0x1011b60
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xce4
mov eax, dword [0x101cdb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 2
push esi
mov esi, ecx
mov dword [ebp - 0xcdc], esi
jne 0x1011dd2
test dword [eax + 0x28], 0x3a01000
jne 0x1011dd2
mov ecx, dword [esi]
push ebx
push edi
push 0x20a
lea eax, [ebp - 0x218]
push eax
xor edi, edi
push edi
push 3
push 0xffffffffffffffff
push ecx
call sub.ESENT.dll_JetGetSystemParameterW
cmp eax, edi
jl 0x1011d80
push 0x100a380
push 0x105
lea edx, [ebp - 0x218]
push edx
call fcn.010109d0
mov ecx, dword [esi]
push 0x20a
lea eax, [ebp - 0x424]
push eax
push edi
push 2
push 0xffffffffffffffff
push ecx
call sub.ESENT.dll_JetGetSystemParameterW
cmp eax, edi
mov dword [ebp - 0xcd0], eax
jl 0x1011d7a
push edi
push edi
push edi
push edi
push 0x100
lea edx, [ebp - 0x624]
push edx
push 3
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x424]
push ecx
call fcn.01014519
mov eax, dword [esi]
add esp, 0x24
push 4
push edi
lea edx, [ebp - 0xcd4]
push edx
push 0x88
push 0xffffffffffffffff
push eax
mov dword [ebp - 0xcd4], edi
call sub.ESENT.dll_JetGetSystemParameterW
cmp eax, edi
mov dword [ebp - 0xcd0], eax
jl 0x1011d7a
mov ebx, dword [ebp - 0xcd4]
not ebx
mov dword [ebp - 0xce4], 0x100a378
mov dword [ebp - 0xce0], 0x100a370
and ebx, 1
mov dword [ebp - 0xcd8], edi
mov ecx, dword [ebp + ebx*4 - 0xce4]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x624]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x82c]
push 0x104
push edx
call fcn.010143f0
add esp, 0x18
lea eax, [ebp - 0xccc]
push eax
lea ecx, [ebp - 0x82c]
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1011d54
test edi, edi
je 0x1011d54
push 0x100
lea edx, [ebp - 0xa2c]
push edx
push 0x105
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0xca0]
push 0
push ecx
call fcn.01014519
lea edx, [ebp - 0xa2c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x624]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x424]
push 0x105
push eax
call fcn.010143f0
add esp, 0x3c
push 0
push 0x50
lea ecx, [ebp - 0xa7c]
push ecx
lea edx, [ebp - 0x424]
push edx
call sub.ESENT.dll_JetGetLogFileInfoW
test eax, eax
jge 0x1011d93
lea eax, [ebp - 0xccc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
jmp 0x1011cc3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xcd8]
inc eax
mov ecx, 1
sub ecx, ebx
mov dword [ebp - 0xcd8], eax
mov ebx, ecx
cmp eax, 2
jb 0x1011c71
mov eax, dword [ebp - 0xcd0]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010140f3
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0xa30]
mov eax, dword [ebp - 0xcdc]
push 0
push edx
push 0x40
push 0
push eax
call sub.ESENT.dll_JetSetSystemParameterW
mov dword [ebp - 0xcd0], eax
test eax, eax
jl 0x1011d7a
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010140f3
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.010140f3
mov esp, ebp
pop ebp
ret 4