Function at 0x1001f9b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041693
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x1005b034]
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 0x1004f350
push eax
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1d0], ecx
call fcn.10019820
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
jae 0x1001fa10
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 0x1001fbd8
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 0x1001fa46
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 0x1001fa72
mov eax, 1
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
cmp edi, 0x10
jae 0x1001fa80
lea edx, [ebp - 0x30]
mov ecx, 0x1004f354
call fcn.100080d0
cmp eax, ebx
jne 0x1001faa2
cmp esi, 1
jae 0x1001fa98
or eax, 0xffffffff
jmp 0x1001faa0
xor eax, eax
cmp esi, 1
setne al
cmp eax, ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x1001fb99
mov eax, esi
cmp esi, 2
jb 0x1001fabe
mov eax, 2
mov edx, dword [ebp - 0x30]
cmp edi, 0x10
jae 0x1001fac9
lea edx, [ebp - 0x30]
mov ecx, 0x1004f358
call fcn.100080d0
cmp eax, ebx
jne 0x1001faeb
cmp esi, 2
jae 0x1001fae1
or eax, 0xffffffff
jmp 0x1001fae9
xor eax, eax
cmp esi, 2
setne al
cmp eax, ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x1001fb99
mov edx, dword [ebp - 0x1d4]
push 0x1004f35c
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.10019820
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x30]
lea ebx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.10007ac0
mov esi, 0x10
mov byte [ebp - 4], 4
cmp dword [ebp - 0x38], esi
jb 0x1001fb42
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 0x1001fb71
push 1
mov eax, 0x1004f35c
lea ecx, [ebp - 0x84]
call fcn.10008150
mov edi, dword [ebp - 0x1d0]
lea ecx, [ebp - 0x84]
call fcn.10008e30
cmp dword [ebp - 0x70], esi
jb 0x1001fb97
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 0x1001fbaf
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 0x1001fa30
mov ecx, dword [ebp - 0x1cc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x54], 0x10
jb 0x1001fbeb
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.1003e6b0
mov esp, ebp
pop ebp
ret