Function at 0x405010
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.0051c8c0
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.00404cb0
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 0x4050af
lea eax, [ebp - 0x110]
push eax
push str.INVALID_HANDLE_VALUE___PATH_:__s__n
call fcn.00404cb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518e98
mov esp, ebp
pop ebp
ret
mov esi, eax
mov ecx, dword [ebp - 0x358]
test cl, 0x10
je 0x405254
test ecx, 0x106
jne 0x405229
lea ecx, [ebp - 0x32c]
mov eax, 0x5b8e14
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4050f7
test dl, dl
je 0x4050f3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4050f7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4050d7
xor eax, eax
jmp 0x4050fc
sbb eax, eax
or eax, 1
test eax, eax
je 0x405474
lea ecx, [ebp - 0x32c]
mov eax, 0x5b8e18
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405130
test dl, dl
je 0x40512c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405130
add eax, 2
add ecx, 2
test dl, dl
jne 0x405110
xor eax, eax
jmp 0x405135
sbb eax, eax
or eax, 1
test eax, eax
je 0x405474
lea eax, [ebp - 0x32c]
push str.Windows
push eax
call fcn.00527b61
add esp, 8
test eax, eax
je 0x405474
lea eax, [ebp - 0x32c]
push str.Program_Files
push eax
call fcn.00527b61
add esp, 8
test eax, eax
je 0x405474
lea eax, [ebp - 0x32c]
push str.Program_Files__x86_
push eax
call fcn.00527b61
add esp, 8
test eax, eax
je 0x405474
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405196
sub ecx, edx
lea edx, [ebp - 0x32c]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4051a8
sub edx, esi
lea eax, [edx + ecx]
cmp eax, 0xfc
ja 0x40546e
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0051c8c0
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 0x5b8cb0
push 0x104
push 0x5d0278
call fcn.00401170
add esp, 0x10
call fcn.00404da0
lea ecx, [ebp - 0x218]
call fcn.00405010
jmp 0x40546e
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.00404cb0
add esp, 0x14
jmp 0x405474
test cl, 0xa0
je 0x405474
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.00527b61
add esp, 8
test eax, eax
je 0x4052bd
push esi
push str..DOCX
call fcn.00527b61
add esp, 8
test eax, eax
je 0x4052bd
mov edx, dword [ebp - 0x35c]
mov ecx, ebx
call fcn.005199e0
movsd qword [ebp - 0x360], xmm0
jmp 0x4052fd
mov edx, dword [ebp - 0x35c]
mov ecx, ebx
mov edi, 1
call fcn.005199e0
inc dword [0x5d03a8]
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.00527b61
add esp, 8
test eax, eax
je 0x40534d
push esi
push str..XLSX
call fcn.00527b61
add esp, 8
test eax, eax
je 0x40534d
push esi
push str..XLSM
call fcn.00527b61
add esp, 8
test eax, eax
je 0x40534d
movsd xmm0, qword [ebp - 0x360]
mulsd xmm0, qword [0x5b9098]
movsd qword [ebp - 0x360], xmm0
jmp 0x405388
movsd xmm0, qword [ebp - 0x360]
mov edi, 1
mulsd xmm0, qword [0x5b9098]
inc dword [0x5d037c]
movsd qword [ebp - 0x360], xmm0
mulsd xmm0, qword [0x5b9098]
addsd xmm0, qword [0x5d0390]
movsd qword [0x5d0390], xmm0
push esi
push str..PPT
call fcn.00527b61
add esp, 8
test eax, eax
je 0x4053c6
push esi
push str..PPTX
call fcn.00527b61
add esp, 8
test eax, eax
je 0x4053c6
movsd xmm0, qword [ebp - 0x360]
mulsd xmm0, qword [0x5b9098]
movsd qword [ebp - 0x360], xmm0
jmp 0x4053f9
movsd xmm0, qword [ebp - 0x360]
mov edi, 1
mulsd xmm0, qword [0x5b9098]
inc dword [0x5d016c]
movsd qword [ebp - 0x360], xmm0
addsd xmm0, qword [0x5d0380]
movsd qword [0x5d0380], xmm0
push esi
push str..PDF
call fcn.00527b61
add esp, 8
test eax, eax
jne 0x40542c
movsd xmm0, qword [ebp - 0x360]
lea edi, [eax + 1]
addsd xmm0, qword [0x5d0388]
inc dword [0x5d03ac]
movsd qword [0x5d0388], xmm0
push esi
push str..HWP
call fcn.00527b61
add esp, 8
test eax, eax
jne 0x40545e
movsd xmm0, qword [ebp - 0x360]
addsd xmm0, qword [0x5d0398]
inc dword [0x5d0274]
movsd qword [0x5d0398], xmm0
jmp 0x405463
cmp edi, 1
jne 0x405468
call fcn.00404da0
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 0x4050b1
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.00518e98
mov esp, ebp
pop ebp
ret