Function at 0x100fac20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.101b79b0
mov eax, dword [0x1027e110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100fad45
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x100fad45
call fcn.101b707f
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
jne 0x100fae35
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100fac70
sub eax, edx
mov esi, eax
je 0x100fae25
cmp esi, 0x7ffffffc
ja 0x100fae25
push 0x354
call fcn.101b4c5e
add esp, 4
test eax, eax
mov dword [edi], eax
jne 0x100facb2
call fcn.101b707f
mov dword [eax], 0xc
jmp 0x100fad50
push 0x354
push 0
push eax
call fcn.101b5c80
add esp, 0xc
push 0
push 0
add esi, 1
push esi
push ebx
push 0
push 0xfde9
mov dword [ebp - 8], 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jg 0x100fad0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x100fad0b
push 0
push 0
push esi
push ebx
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x100fad66
lea eax, [edi + edi + 4]
call fcn.101bb6b0
mov eax, esp
push edi
push eax
push esi
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100fad92
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
push ecx
call fcn.101b47dc
add esp, 4
mov dword [esi], 0
call fcn.101b707f
mov dword [eax], 0x16
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101b40e2
mov esp, ebp
pop ebp
ret
lea eax, [esi + esi + 4]
mov edi, esi
call fcn.101bb6b0
xor eax, eax
test esi, esi
mov edx, esp
jbe 0x100fad95
lea esp, [esp]
movsx cx, byte [eax + ebx]
mov word [edx + eax*2], cx
add eax, 1
cmp eax, esi
jb 0x100fad80
jmp 0x100fad95
mov edx, dword [ebp - 0xc]
sub edi, 1
movzx eax, word [edx + edi*2 - 2]
cmp ax, 0x2a
lea esi, [edx + edi*2]
je 0x100fadef
cmp ax, 0x2f
je 0x100fadd1
cmp ax, 0x5c
je 0x100fadd1
mov eax, 0x1021e03c
sub esi, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x100fadc0
jmp 0x100fadef
mov eax, 0x1021e038
sub esi, eax
jmp 0x100fade0
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x100fade0
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [esi]
mov dword [ecx + 0x250], eax
mov eax, dword [esi]
cmp dword [eax + 0x250], 0xffffffff
jne 0x100fae4c
push eax
call fcn.101b47dc
mov edx, esi
add esp, 4
mov dword [edx], 0
jmp 0x100fad45
call fcn.101b707f
mov dword [eax], 2
jmp 0x100fad50
push eax
mov eax, dword [eax + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100fae4e
jmp 0x100fad50
mov edi, esi
mov eax, dword [edi]
lea edi, [eax + 0x2c]
xor esi, esi
cmp word [edi], si
je 0x100fae72
lea ebx, [ebx]
cmp esi, 0xff
jae 0x100fae72
add esi, 1
cmp word [edi + esi*2], 0
jne 0x100fae60
push 0
push 0
push 0x100
add eax, 0x254
push eax
add esi, 1
push esi
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x100faeb6
test esi, esi
jbe 0x100faeb6
jmp 0x100faea0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov cl, byte [edi + eax*2]
mov byte [edx + eax + 0x254], cl
add eax, 1
cmp eax, esi
jb 0x100faea0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov byte [edx + 0x353], 0
mov eax, dword [eax]
add eax, 0x254
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101b40e2
mov esp, ebp
pop ebp
ret