Function at 0x4052f0
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.0051cb90
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.00404ef0
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 0x40538f
lea eax, [ebp - 0x110]
push eax
push str.INVALID_HANDLE_VALUE___PATH_:__s__n
call fcn.00404ef0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519168
mov esp, ebp
pop ebp
ret
mov esi, eax
mov ecx, dword [ebp - 0x358]
test cl, 0x10
je 0x405534
test ecx, 0x106
jne 0x405509
lea ecx, [ebp - 0x32c]
mov eax, 0x5b8e5c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4053d7
test dl, dl
je 0x4053d3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4053d7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4053b7
xor eax, eax
jmp 0x4053dc
sbb eax, eax
or eax, 1
test eax, eax
je 0x405754
lea ecx, [ebp - 0x32c]
mov eax, 0x5b8e60
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405410
test dl, dl
je 0x40540c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405410
add eax, 2
add ecx, 2
test dl, dl
jne 0x4053f0
xor eax, eax
jmp 0x405415
sbb eax, eax
or eax, 1
test eax, eax
je 0x405754
lea eax, [ebp - 0x32c]
push str.Windows
push eax
call fcn.00527e21
add esp, 8
test eax, eax
je 0x405754
lea eax, [ebp - 0x32c]
push str.Program_Files
push eax
call fcn.00527e21
add esp, 8
test eax, eax
je 0x405754
lea eax, [ebp - 0x32c]
push str.Program_Files__x86_
push eax
call fcn.00527e21
add esp, 8
test eax, eax
je 0x405754
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405476
sub ecx, edx
lea edx, [ebp - 0x32c]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x405488
sub edx, esi
lea eax, [edx + ecx]
cmp eax, 0xfc
ja 0x40574e
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0051cb90
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 0x5b8cec
push 0x104
push 0x5d0270
call fcn.00401170
add esp, 0x10
call fcn.00405080
lea ecx, [ebp - 0x218]
call fcn.004052f0
jmp 0x40574e
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.00404ef0
add esp, 0x14
jmp 0x405754
test cl, 0xa0
je 0x405754
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.00527e21
add esp, 8
test eax, eax
je 0x40559d
push esi
push str..DOCX
call fcn.00527e21
add esp, 8
test eax, eax
je 0x40559d
mov edx, dword [ebp - 0x35c]
mov ecx, ebx
call fcn.00519cb0
movsd qword [ebp - 0x360], xmm0
jmp 0x4055dd
mov edx, dword [ebp - 0x35c]
mov ecx, ebx
mov edi, 1
call fcn.00519cb0
inc dword [0x5d0394]
movsd qword [ebp - 0x360], xmm0
mulsd xmm0, qword [0x5b90e0]
mulsd xmm0, qword [0x5b90e0]
addsd xmm0, qword [0x5d03a0]
movsd qword [0x5d03a0], xmm0
push esi
push str..XLS
call fcn.00527e21
add esp, 8
test eax, eax
je 0x40562d
push esi
push str..XLSX
call fcn.00527e21
add esp, 8
test eax, eax
je 0x40562d
push esi
push str..XLSM
call fcn.00527e21
add esp, 8
test eax, eax
je 0x40562d
movsd xmm0, qword [ebp - 0x360]
mulsd xmm0, qword [0x5b90e0]
movsd qword [ebp - 0x360], xmm0
jmp 0x405668
movsd xmm0, qword [ebp - 0x360]
mov edi, 1
mulsd xmm0, qword [0x5b90e0]
inc dword [0x5d0390]
movsd qword [ebp - 0x360], xmm0
mulsd xmm0, qword [0x5b90e0]
addsd xmm0, qword [0x5d0388]
movsd qword [0x5d0388], xmm0
push esi
push str..PPT
call fcn.00527e21
add esp, 8
test eax, eax
je 0x4056a6
push esi
push str..PPTX
call fcn.00527e21
add esp, 8
test eax, eax
je 0x4056a6
movsd xmm0, qword [ebp - 0x360]
mulsd xmm0, qword [0x5b90e0]
movsd qword [ebp - 0x360], xmm0
jmp 0x4056d9
movsd xmm0, qword [ebp - 0x360]
mov edi, 1
mulsd xmm0, qword [0x5b90e0]
inc dword [0x5d026c]
movsd qword [ebp - 0x360], xmm0
addsd xmm0, qword [0x5d0378]
movsd qword [0x5d0378], xmm0
push esi
push str..PDF
call fcn.00527e21
add esp, 8
test eax, eax
jne 0x40570c
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.00527e21
add esp, 8
test eax, eax
jne 0x40573e
movsd xmm0, qword [ebp - 0x360]
addsd xmm0, qword [0x5d0398]
inc dword [0x5d0374]
movsd qword [0x5d0398], xmm0
jmp 0x405743
cmp edi, 1
jne 0x405748
call fcn.00405080
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 0x405391
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.00519168
mov esp, ebp
pop ebp
ret