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

Disassembly:
sub esp, 0x6d0
mov eax, dword [0x41b008]
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 0x41b030
call fcn.00401ad0
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 0x409950
push esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x409965
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x409a9a
push esi
push str.No_extra_files_matching_pattern__ls_were_found
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
jmp 0x409b5f
push ebp
call dword [sym.imp.kernel32.dll_FindNextFileW]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x409b2a
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x4d8]
push str._s_s
push 0x104
push eax
call fcn.00401090
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x409b22
lea eax, [esp + 0x4d0]
push eax
push str.File_to_collect___ls.
push 2
push 0x41b030
call fcn.00401ad0
add esp, 0x10
cmp dword [esp + 0x700], 0
jbe 0x4099f3
xor al, al
xor edx, edx
jmp 0x4099c4
mov edi, dword [esp + 0x18]
test al, al
jne 0x4099f3
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 0x4099c0
cmp si, di
jne 0x409a82
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 0x409aee
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 0x409acd
jl 0x409a3f
cmp eax, 0xa00000
jae 0x409acd
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 0x409ac5
lea eax, [esp + 0x4d0]
push eax
push str.Collected_extra_file___ls.
push 2
push 0x41b030
call fcn.00401ad0
add esp, 0x10
cmp dword [esp + 0x14], 0
je 0x409b5b
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
jmp 0x409910
test eax, eax
jg 0x409aa2
mov ebx, eax
jmp 0x409aab
movzx ebx, ax
or ebx, 0x80070000
push ebx
push str.FindFirstFile_failed__hr__error:_0x_08X
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
jmp 0x409b5f
push ebx
push str.WerReportAddfile_Extra_File_failed__error:_0x_08X
jmp 0x409b4c
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 0x41b030
call fcn.00401ad0
add esp, 0x1c
jmp 0x409b07
push eax
push str.fileSizeHigh___0__fileSizeHigh___d
push 1
push 0x41b030
call fcn.00401ad0
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 0x41b030
call fcn.00401ad0
add esp, 0x14
jmp 0x409b5b
push ebx
push str.StringCchPrintfW_fileToCollect__failed__error:_0x_08X
jmp 0x409b4c
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
je 0x409b5b
test eax, eax
jg 0x409b3d
mov ebx, eax
jmp 0x409b46
movzx ebx, ax
or ebx, 0x80070000
push ebx
push str.FindNextFile_failed__hr__error:_0x_08X
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
test ebp, ebp
je 0x409b66
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.0040e29f
add esp, 0x6d0
ret 0x24