Function at 0x10008d46
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x10054f1c
call fcn.10053998
sub esp, 0x300
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x9c]
call fcn.1000210e
or dword [ebp - 0x1c], 0xffffffff
mov byte [ebx], 0
and dword [ebp - 4], 0
lea edi, [ebx + 4]
mov ecx, edi
call fcn.1000496f
push ecx
mov ecx, edi
call fcn.10004a0a
test al, al
je 0x10009139
sub esp, 0x18
mov esi, esp
lea eax, [ebp + 0x50]
push eax
push 0x10071ec0
lea edx, [ebp + 0x38]
lea ecx, [ebp - 0x6c]
call fcn.10002ff0
pop ecx
mov edx, eax
mov ecx, esi
call fcn.10002fcc
pop ecx
push 0x64
mov ecx, edi
call fcn.10004be3
cmp eax, 0xffffffff
sete bl
lea ecx, [ebp - 0x6c]
call fcn.10002000
test bl, bl
je 0x10008dec
mov ecx, edi
call fcn.10004f4b
mov dword [ebp - 0x20], 1
push 0x1006b710
lea eax, [ebp - 0x20]
push eax
call fcn.10034e0a
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x20]
call fcn.10002343
mov edi, eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 0x20]
call fcn.10002306
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 0x20]
call fcn.10002343
push dword [edi]
push dword [esi]
push dword [eax]
lea ecx, [ebp - 0x3c]
call fcn.10009772
add esp, 0xc
lea eax, [ebp - 0x304]
push eax
push 0x10062958
lea edx, [ebp + 8]
lea ecx, [ebp - 0x6c]
call fcn.10008bcd
pop ecx
mov ecx, eax
call fcn.10001f24
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x6c]
call fcn.10001f29
cmp esi, 0xffffffff
jne 0x10008e95
sub esp, 0x18
mov ecx, esp
push 0x10062774
call fcn.100020bd
push 0x65
mov edi, dword [ebp - 0x18]
lea ecx, [edi + 4]
call fcn.10004be3
lea ecx, [edi + 4]
call fcn.10004f4b
mov dword [ebp - 0x24], 2
push 0x1006b710
lea eax, [ebp - 0x24]
jmp 0x10008de6
lea eax, [ebp - 0x304]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x100090ed
mov ebx, dword [ebp - 0x18]
cmp byte [ebx], 0
je 0x10008ec7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebx + 4]
call fcn.10004f4b
jmp 0x10009160
test byte [ebp - 0x304], 0x10
je 0x10008fd5
mov ecx, 0x10062898
lea eax, [ebp - 0x2d8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10008f05
test dx, dx
je 0x10008f01
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10008f05
add eax, 4
add ecx, 4
test dx, dx
jne 0x10008edf
xor eax, eax
jmp 0x10008f0a
sbb eax, eax
or eax, 1
test eax, eax
je 0x10008fd5
mov ecx, 0x1006297c
lea eax, [ebp - 0x2d8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10008f43
test dx, dx
je 0x10008f3f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10008f43
add eax, 4
add ecx, 4
test dx, dx
jne 0x10008f1d
xor eax, eax
jmp 0x10008f48
sbb eax, eax
or eax, 1
test eax, eax
je 0x10008fd5
push 0x10062978
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x54]
call fcn.100042a7
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0xb4]
call fcn.10008c37
pop ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.100030df
pop ecx
lea ecx, [ebp - 0xb4]
call fcn.10001f29
lea ecx, [ebp - 0x54]
call fcn.10001f29
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x20]
push eax
call fcn.10008abc
sub esp, 0x18
mov ecx, esp
lea eax, [ebp - 0x6c]
push eax
call fcn.10008abc
mov ecx, ebx
call fcn.1000919e
test al, al
jne 0x10008fcd
mov dword [ebp - 0x28], 3
push 0x1006b710
lea eax, [ebp - 0x28]
jmp 0x10008de6
lea ecx, [ebp - 0x6c]
call fcn.10001f29
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x84]
call fcn.100042a7
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x84]
call fcn.10002343
mov edi, eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x84]
call fcn.10002306
mov esi, eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x84]
call fcn.10002343
push dword [edi]
push dword [esi]
push dword [eax]
lea ecx, [ebp - 0x30]
call fcn.10009772
add esp, 0xc
push 0
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x84]
call fcn.100095e3
cmp eax, 0xffffffff
je 0x100090da
push 0x250
lea eax, [ebp - 0x304]
push eax
lea ecx, [ebp - 0x54]
call fcn.100020e4
push eax
lea ecx, [ebp - 0x9c]
call fcn.1000200a
lea ecx, [ebp - 0x54]
call fcn.10002000
sub esp, 0x18
mov esi, esp
lea eax, [ebp - 0x9c]
push eax
push 0x10071ec0
lea edx, [ebp + 8]
lea ecx, [ebp - 0xb4]
call fcn.10019eeb
mov edx, eax
lea ecx, [ebp - 0x54]
call fcn.10002fcc
pop ecx
mov edx, eax
mov ecx, esi
call fcn.10002fcc
pop ecx
push 0x66
lea ecx, [ebx + 4]
call fcn.10004be3
cmp eax, 0xffffffff
sete bl
lea ecx, [ebp - 0x54]
call fcn.10002000
lea ecx, [ebp - 0xb4]
call fcn.10002000
test bl, bl
je 0x100090da
mov dword [ebp - 0x2c], 4
push 0x1006b710
lea eax, [ebp - 0x2c]
jmp 0x10008de6
lea ecx, [ebp - 0x84]
call fcn.10001f29
mov esi, dword [ebp - 0x1c]
jmp 0x10008e95
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x18]
sub esp, 0x18
mov esi, esp
lea eax, [ebp + 0x50]
push eax
push 0x10071ec0
lea edx, [ebp + 0x38]
lea ecx, [ebp - 0x54]
call fcn.10002ff0
pop ecx
mov edx, eax
mov ecx, esi
call fcn.10002fcc
pop ecx
push 0x67
lea ecx, [edi + 4]
call fcn.10004be3
lea ecx, [ebp - 0x54]
call fcn.10002000
lea ecx, [edi + 4]
jmp 0x10008ebd
push 0
push 0
jmp 0x10008de7
lea ecx, [ebp - 0x9c]
call fcn.10002000
lea ecx, [ebp + 8]
call fcn.10001f29
lea ecx, [ebp + 0x20]
call fcn.10001f29
lea ecx, [ebp + 0x38]
call fcn.10002000
lea ecx, [ebp + 0x50]
call fcn.10002000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x60