Function at 0x105fa2d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x1076530]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x264], eax
mov eax, dword [0x1075318]
cmp eax, 0x1075318
je 0x105fa78
test dword [eax + 0x1c], 0x20000000
je 0x105fa78
push 0x100fea0
push 0x46
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01016edb
push 1
push 0x97e
push 0x100ff38
lea ecx, [ebp - 0x294]
call fcn.01055826
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x250]
push ebx
push eax
mov dword [ebp - 0x254], ebx
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 0x264]
or dword [ebp - 0x258], 0xffffffff
xor eax, eax
add esp, 0xc
lea edi, [ebp - 0x298]
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 0x270], 0x1010420
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
stosd dword es:[edi], eax
cmp edx, ebx
je 0x105faf2
cmp esi, ebx
jne 0x105fb0d
mov dword [ebp - 0x294], 0x80070057
mov eax, 0x986
mov word [ebp - 0x28e], ax
jmp 0x105fc74
mov eax, 0x986
push 0x1006770
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x294], ebx
mov word [ebp - 0x290], ax
call fcn.01064722
mov dword [ebp - 0x294], eax
cmp eax, ebx
mov eax, 0x988
jl 0x105fb01
mov word [ebp - 0x290], ax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x258], eax
cmp eax, 0xffffffff
je 0x105fb67
cmp eax, ebx
jne 0x105fb79
call fcn.0105d3b8
mov dword [ebp - 0x294], eax
mov eax, 0x98c
jmp 0x105fb01
mov eax, 0x98c
mov dword [ebp - 0x294], ebx
mov word [ebp - 0x290], ax
lea edi, [eax + 0xd]
mov edx, dword [ebp - 0x264]
lea eax, [ebp - 0x228]
push eax
push 0x1001814
lea ecx, [ebp - 0x270]
call fcn.01064743
mov dword [ebp - 0x294], eax
cmp eax, ebx
mov eax, 0x990
jl 0x105fb01
test byte [ebp - 0x254], 0x10
mov word [ebp - 0x290], ax
je 0x105fc3f
lea eax, [ebp - 0x228]
push 0x1004668
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x105fc50
lea eax, [ebp - 0x228]
push 0x1004660
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x105fc50
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
call fcn.0105fa2d
cmp eax, ebx
mov dword [ebp - 0x294], eax
jl 0x105fc6d
mov eax, edi
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x260]
add dword [esi], eax
mov eax, dword [ebp - 0x25c]
jmp 0x105fc4d
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x238]
add dword [esi], ecx
adc dword [esi + 4], eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x105fb8e
jmp 0x105fc74
mov word [ebp - 0x28e], di
mov esi, dword [ebp - 0x294]
lea ecx, [ebp - 0x270]
call fcn.010635b3
cmp dword [ebp - 0x258], 0xffffffff
je 0x105fca2
cmp dword [ebp - 0x258], ebx
je 0x105fca2
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x294]
call fcn.01055a3c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01054fa7
leave
ret 8