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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
mov eax, dword [0x5c6a7c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x368], ebx
call fcn.0051ca30
add esp, 0xc
lea eax, [ebp - 0x110]
push ebx
push str._s.
push 0x104
push eax
call fcn.00401170
push ebx
push str.folderSearch_:__s__n
call fcn.00404e70
add esp, 0x18
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, eax
mov dword [ebp - 0x364], ecx
cmp ecx, 0xffffffff
jne 0x4051ff
lea eax, [ebp - 0x110]
push eax
push str.INVALID_HANDLE_VALUE___PATH_:__s__n
call fcn.00404e70
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519008
mov esp, ebp
pop ebp
ret
mov esi, eax
mov ecx, dword [ebp - 0x358]
test cl, 0x10
je 0x4053a4
test ecx, 0x106
jne 0x405379
lea ecx, [ebp - 0x32c]
mov eax, 0x5b8e14
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405247
test dl, dl
je 0x405243
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405247
add eax, 2
add ecx, 2
test dl, dl
jne 0x405227
xor eax, eax
jmp 0x40524c
sbb eax, eax
or eax, 1
test eax, eax
je 0x4055c4
lea ecx, [ebp - 0x32c]
mov eax, 0x5b8e18
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405280
test dl, dl
je 0x40527c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405280
add eax, 2
add ecx, 2
test dl, dl
jne 0x405260
xor eax, eax
jmp 0x405285
sbb eax, eax
or eax, 1
test eax, eax
je 0x4055c4
lea eax, [ebp - 0x32c]
push str.Windows
push eax
call fcn.00527cc1
add esp, 8
test eax, eax
je 0x4055c4
lea eax, [ebp - 0x32c]
push str.Program_Files
push eax
call fcn.00527cc1
add esp, 8
test eax, eax
je 0x4055c4
lea eax, [ebp - 0x32c]
push str.Program_Files__x86_
push eax
call fcn.00527cc1
add esp, 8
test eax, eax
je 0x4055c4
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4052e6
sub ecx, edx
lea edx, [ebp - 0x32c]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4052f8
sub edx, esi
lea eax, [edx + ecx]
cmp eax, 0xfc
ja 0x4055be
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0051ca30
add esp, 0xc
lea eax, [ebp - 0x32c]
push eax
push ebx
push str._s_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00401170
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push 0x5b8cd0
push 0x104
push 0x5d0270
call fcn.00401170
add esp, 0x10
call fcn.00404ef0
lea ecx, [ebp - 0x218]
call fcn.00405160
jmp 0x4055be
lea eax, [ebp - 0x32c]
push eax
mov eax, ecx
and eax, 2
push eax
mov eax, ecx
and ecx, 4
and eax, 0x100
push eax
push ecx
push str.PATH_:__d__d__d__s__n
call fcn.00404e70
add esp, 0x14
jmp 0x4055c4
test cl, 0xa0
je 0x4055c4
lea eax, [ebp - 0x32c]
xor edi, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov esi, eax
xor ebx, ebx
mov eax, dword [ebp - 0x33c]
or ebx, dword [ebp - 0x338]
push esi
push str..DOC
mov dword [ebp - 0x35c], eax
call fcn.00527cc1
add esp, 8
test eax, eax
je 0x40540d
push esi
push str..DOCX
call fcn.00527cc1
add esp, 8
test eax, eax
je 0x40540d
mov edx, dword [ebp - 0x35c]
mov ecx, ebx
call fcn.00519b50
movsd qword [ebp - 0x360], xmm0
jmp 0x40544d
mov edx, dword [ebp - 0x35c]
mov ecx, ebx
mov edi, 1
call fcn.00519b50
inc dword [0x5d0394]
movsd qword [ebp - 0x360], xmm0
mulsd xmm0, qword [0x5b9098]
mulsd xmm0, qword [0x5b9098]
addsd xmm0, qword [0x5d03a0]
movsd qword [0x5d03a0], xmm0
push esi
push str..XLS
call fcn.00527cc1
add esp, 8
test eax, eax
je 0x40549d
push esi
push str..XLSX
call fcn.00527cc1
add esp, 8
test eax, eax
je 0x40549d
push esi
push str..XLSM
call fcn.00527cc1
add esp, 8
test eax, eax
je 0x40549d
movsd xmm0, qword [ebp - 0x360]
mulsd xmm0, qword [0x5b9098]
movsd qword [ebp - 0x360], xmm0
jmp 0x4054d8
movsd xmm0, qword [ebp - 0x360]
mov edi, 1
mulsd xmm0, qword [0x5b9098]
inc dword [0x5d0390]
movsd qword [ebp - 0x360], xmm0
mulsd xmm0, qword [0x5b9098]
addsd xmm0, qword [0x5d0388]
movsd qword [0x5d0388], xmm0
push esi
push str..PPT
call fcn.00527cc1
add esp, 8
test eax, eax
je 0x405516
push esi
push str..PPTX
call fcn.00527cc1
add esp, 8
test eax, eax
je 0x405516
movsd xmm0, qword [ebp - 0x360]
mulsd xmm0, qword [0x5b9098]
movsd qword [ebp - 0x360], xmm0
jmp 0x405549
movsd xmm0, qword [ebp - 0x360]
mov edi, 1
mulsd xmm0, qword [0x5b9098]
inc dword [0x5d026c]
movsd qword [ebp - 0x360], xmm0
addsd xmm0, qword [0x5d0378]
movsd qword [0x5d0378], xmm0
push esi
push str..PDF
call fcn.00527cc1
add esp, 8
test eax, eax
jne 0x40557c
movsd xmm0, qword [ebp - 0x360]
lea edi, [eax + 1]
addsd xmm0, qword [0x5d0380]
inc dword [0x5d03a8]
movsd qword [0x5d0380], xmm0
push esi
push str..HWP
call fcn.00527cc1
add esp, 8
test eax, eax
jne 0x4055ae
movsd xmm0, qword [ebp - 0x360]
addsd xmm0, qword [0x5d0398]
inc dword [0x5d0374]
movsd qword [0x5d0398], xmm0
jmp 0x4055b3
cmp edi, 1
jne 0x4055b8
call fcn.00404ef0
mov ebx, dword [ebp - 0x368]
mov esi, dword [ebp - 0x364]
lea eax, [ebp - 0x358]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405201
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00519008
mov esp, ebp
pop ebp
ret