Function at 0x1001b680
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036703
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x1004b034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x10041c74
push eax
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1d0], ecx
call fcn.1001f9a0
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
jae 0x1001b6e0
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x1c4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1cc], eax
cmp eax, 0xffffffff
je 0x1001b8a8
lea ecx, [ecx]
lea eax, [ebp - 0x198]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001b716
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x198]
lea esi, [ebp - 0x30]
call fcn.10002d20
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
mov eax, esi
cmp esi, 1
jb 0x1001b742
mov eax, 1
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
cmp edi, 0x10
jae 0x1001b750
lea edx, [ebp - 0x30]
mov ecx, 0x10041c78
call fcn.10008720
cmp eax, ebx
jne 0x1001b772
cmp esi, 1
jae 0x1001b768
or eax, 0xffffffff
jmp 0x1001b770
xor eax, eax
cmp esi, 1
setne al
cmp eax, ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x1001b869
mov eax, esi
cmp esi, 2
jb 0x1001b78e
mov eax, 2
mov edx, dword [ebp - 0x30]
cmp edi, 0x10
jae 0x1001b799
lea edx, [ebp - 0x30]
mov ecx, 0x10041c7c
call fcn.10008720
cmp eax, ebx
jne 0x1001b7bb
cmp esi, 2
jae 0x1001b7b1
or eax, 0xffffffff
jmp 0x1001b7b9
xor eax, eax
cmp esi, 2
setne al
cmp eax, ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x1001b869
mov edx, dword [ebp - 0x1d4]
push 0x10041c80
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.1001f9a0
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x30]
lea ebx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.10008110
mov esi, 0x10
mov byte [ebp - 4], 4
cmp dword [ebp - 0x38], esi
jb 0x1001b812
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp - 0x1c4]
xor eax, eax
shr edx, 4
and dl, 1
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x4c], al
je 0x1001b841
push 1
mov eax, 0x10041c80
lea ecx, [ebp - 0x84]
call fcn.100087a0
mov edi, dword [ebp - 0x1d0]
lea ecx, [ebp - 0x84]
call fcn.10009380
cmp dword [ebp - 0x70], esi
jb 0x1001b867
mov eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ebx, ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1c], 0x10
jb 0x1001b87f
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x1cc]
lea edx, [ebp - 0x1c4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001b700
mov ecx, dword [ebp - 0x1cc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x54], 0x10
jb 0x1001b8bb
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034620
mov esp, ebp
pop ebp
ret