Function at 0x40db40
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
sub esp, 0x6d0
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0x6cc], eax
mov eax, dword [esp + 0x6d4]
push ebx
push ebp
mov dword [esp + 0x20], eax
xor ebp, ebp
mov eax, dword [esp + 0x6e8]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x6e8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6f0]
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x704]
push 0x208
mov dword [esp + 0x28], eax
lea eax, [esp + 0x4d4]
push ebp
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x20], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
push str.Collecting_extra_files_matching___ls.
push 2
push 0x429048
call fcn.00404d90
mov eax, dword [esp + 0x708]
lea edi, [esp + 0x4e0]
add esp, 0x10
lea edi, [edi + eax*2]
mov dword [esp + 0x18], edi
nop dword [eax + eax]
lea eax, [esp + 0x30]
push eax
test ebp, ebp
jne 0x40dc11
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40dc26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40dd5a
push esi
push str.No_extra_files_matching_pattern__ls_were_found
jmp 0x40de1c
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x40ddfa
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x4d8]
push str._s_s
push 0x104
push eax
call fcn.00401fd0
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x40dddc
lea eax, [esp + 0x4d0]
push eax
push str.File_to_collect___ls.
push 2
push 0x429048
call fcn.00404d90
add esp, 0x10
cmp dword [esp + 0x700], 0
jbe 0x40dcb3
xor al, al
xor edx, edx
jmp 0x40dc84
mov edi, dword [esp + 0x18]
test al, al
jne 0x40dcb3
mov eax, dword [esp + 0x6fc]
movzx ecx, word [eax + edx*2]
movzx eax, word [edi]
mov esi, ecx
cmp cx, ax
mov edi, eax
sete al
inc edx
cmp edx, dword [esp + 0x700]
jb 0x40dc80
cmp si, di
jne 0x40dd42
mov eax, dword [esp + 0x4c]
lea esi, [esp + 0x30]
lea edi, [esp + 0x280]
mov ecx, 0x94
rep movsd dword es:[edi], dword [esi]
test eax, eax
jne 0x40dda8
mov esi, dword [esp + 0x1c]
mov ecx, 0
mov edx, dword [esp + 0x50]
mov eax, edx
add eax, dword [esi]
mov dword [esi], eax
adc ecx, dword [esi + 4]
mov dword [esi + 4], ecx
test ecx, ecx
jg 0x40dd87
jl 0x40dcff
cmp eax, 0xa00000
jae 0x40dd87
push dword [esp + 0x6e8]
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x4d4]
push 5
push eax
push dword [esp + 0x34]
inc dword [esi]
call dword [sym.imp.wer.dll_WerReportAddFile]
mov ebx, eax
test ebx, ebx
js 0x40dd7f
lea eax, [esp + 0x4d0]
push eax
push str.Collected_extra_file___ls.
push 2
push 0x429048
call fcn.00404d90
add esp, 0x10
cmp dword [esp + 0x14], 0
je 0x40ddf4
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
jmp 0x40dbe0
test eax, eax
jg 0x40dd6b
mov ebx, eax
push ebx
push str.FindFirstFile_failed__hr__error:_0x_08X
jmp 0x40de1c
movzx ebx, ax
or ebx, 0x80070000
push ebx
push str.FindFirstFile_failed__hr__error:_0x_08X
jmp 0x40de1c
push ebx
push str.WerReportAddfile_Extra_File_failed__error:_0x_08X
jmp 0x40dde2
push ecx
push eax
push edx
lea eax, [esp + 0x2b8]
push eax
push str.totalSize_has_exceeded_limit__fileName___s__fileSizeLow___d__totalSize___lld
push 1
push 0x429048
call fcn.00404d90
add esp, 0x1c
jmp 0x40ddc1
push eax
push str.fileSizeHigh___0__fileSizeHigh___d
push 1
push 0x429048
call fcn.00404d90
mov esi, dword [esp + 0x2c]
add esp, 0x10
push dword [esi + 4]
push dword [esi]
push str.Total_Size_of_Files___lld__has_exceeded_limit
push 1
push 0x429048
call fcn.00404d90
add esp, 0x14
jmp 0x40ddf4
push ebx
push str.StringCchPrintfW_fileToCollect__failed__error:_0x_08X
push 1
push 0x429048
lfence
call fcn.00404d90
add esp, 0x10
test ebp, ebp
jne 0x40de2b
jmp 0x40de32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40de2b
test eax, eax
jg 0x40de0d
mov ebx, eax
jmp 0x40de16
movzx ebx, ax
or ebx, 0x80070000
push ebx
push str.FindNextFile_failed__hr__error:_0x_08X
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x6dc]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414600
add esp, 0x6d0
ret 0x24