Function at 0x1009de47
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x101042d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x260], ecx
cmp edi, ebx
je 0x1009de95
movzx eax, byte [edi]
push eax
call fcn.1009e309
test al, al
jne 0x1009de8f
push 0
push edi
push ebx
call sym.ucrtbase.dll__mbsdec_l
mov edi, eax
add esp, 0xc
cmp edi, ebx
jne 0x1009de70
mov ecx, dword [ebp - 0x260]
mov dl, byte [edi]
cmp dl, 0x3a
jne 0x1009deb6
lea eax, [ebx + 1]
cmp edi, eax
je 0x1009deb6
push ecx
push 0
xor edx, edx
mov ecx, ebx
call fcn.1009dcf7
pop ecx
pop ecx
jmp 0x1009e090
push edx
call fcn.1009e309
test al, al
je 0x1009dec7
sub edi, ebx
inc edi
xor ecx, ecx
jmp 0x1009decb
xor ecx, ecx
mov edi, ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x29c], ecx
push eax
push ecx
mov dword [ebp - 0x298], ecx
mov edx, ebx
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x28c], ecx
mov byte [ebp - 0x288], cl
push ecx
lea ecx, [ebp - 0x29c]
call fcn.1009e47e
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
mov esi, eax
mov dword [ebp - 0x264], esi
cmp esi, 0xffffffff
jne 0x1009df37
push dword [ebp - 0x260]
xor edx, edx
mov ecx, ebx
push 0
call fcn.1009dcf7
pop ecx
pop ecx
mov esi, eax
jmp 0x1009e015
mov ecx, dword [ebp - 0x260]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
mov dword [ebp - 0x280], eax
xor eax, eax
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], eax
mov byte [ebp - 0x268], al
call fcn.10042c5e
push eax
push ecx
lea edx, [ebp - 0x27c]
lea ecx, [ebp - 0x230]
call fcn.1009d61e
neg eax
pop ecx
sbb eax, eax
not eax
and eax, dword [ebp - 0x274]
pop ecx
cmp byte [eax], 0x2e
jne 0x1009dfae
mov cl, byte [eax + 1]
test cl, cl
je 0x1009dfce
cmp cl, 0x2e
jne 0x1009dfae
cmp byte [eax + 2], 0
je 0x1009dfce
push dword [ebp - 0x260]
mov edx, ebx
mov ecx, eax
push edi
call fcn.1009dcf7
mov dword [ebp - 0x284], eax
pop ecx
pop ecx
test eax, eax
jne 0x1009e05f
cmp byte [ebp - 0x268], 0
je 0x1009dfe3
push dword [ebp - 0x274]
call sym.ucrtbase.dll__free_base
pop ecx
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x1009df4b
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x280]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 2
cmp ecx, eax
jne 0x1009e02f
xor esi, esi
lea ecx, [ebp - 0x264]
call fcn.1009e2bd
lea ecx, [ebp - 0x29c]
call fcn.100978b6
mov eax, esi
jmp 0x1009e090
push 0x1009d600
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call sym.ucrtbase.dll_qsort
add esp, 0x10
lea ecx, [ebp - 0x264]
call fcn.1009e2bd
lea ecx, [ebp - 0x29c]
call fcn.100978b6
xor eax, eax
jmp 0x1009e090
cmp byte [ebp - 0x268], 0
je 0x1009e074
push dword [ebp - 0x274]
call sym.ucrtbase.dll__free_base
pop ecx
lea ecx, [ebp - 0x264]
call fcn.1009e2bd
lea ecx, [ebp - 0x29c]
call fcn.100978b6
mov eax, dword [ebp - 0x284]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10068820
leave
ret