Function at 0x40b00a
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4219b9
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x432024]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x432024]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
push ebx
push eax
push 0x427de4
mov esi, 0x4264c0
push esi
mov dword [esp + 0x24], eax
call fcn.0041524e
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
push ebx
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x9c], 1
call fcn.004120d8
add esp, 0x1c
test eax, eax
je 0x40b280
cmp dword [esp + 0x1c], edi
je 0x40b280
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
je 0x40b280
push 0x427e64
push dword [esp + 0x18]
call dword [sym.imp.MSVCR80.dll__wfopen]
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
mov dword [esp + 0x28], ebx
jne 0x40b0e4
push dword [esp + 0x14]
push str.open_file___s__failed
jmp 0x40b28f
push 2
push edi
push ebx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
push ebx
call dword [sym.imp.MSVCR80.dll_ftell]
cmp eax, edi
pop ecx
jne 0x40b11f
push ebx
push 1
lea eax, [esp + 0x1c]
push 3
push eax
mov byte [esp + 0x24], 0xef
mov byte [esp + 0x25], 0xbb
mov byte [esp + 0x26], 0xbf
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x80], 2
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x48], 1
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
jbe 0x40b151
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x1c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], eax
jbe 0x40b169
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x44]
je 0x40b232
cmp esi, dword [esp + 0x20]
jb 0x40b183
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
sub eax, 0x10
call fcn.004052d7
add eax, 0x10
mov dword [esp + 0x14], eax
lea ebx, [esp + 0x14]
mov byte [esp + 0x80], 3
call fcn.004048f1
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 3
jl 0x40b204
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b204
cmp dword [esi - 4], 1
jle 0x40b1cf
push dword [esi - 0xc]
mov eax, ebx
push eax
call fcn.004015c7
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x40acc0
push 1
push 1
push esi
call fcn.0040a893
add esp, 0x18
cmp esi, edi
jne 0x40b1f3
xor eax, eax
jmp 0x40b1fb
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [esp + 0x14]
call fcn.004014c7
lea eax, [esi - 0x10]
mov byte [esp + 0x80], 2
call fcn.004016af
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x20]
jb 0x40b224
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add dword [esp + 0x30], 4
mov ebx, dword [esp + 0x28]
jmp 0x40b169
mov esi, dword [sym.imp.MSVCR80.dll_fprintf]
push str._r_n_________________________________________r_n
push ebx
call esi
push dword [esp + 0x58]
push str.Total_Files:__d
push ebx
call esi
add esp, 0x14
push ebx
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea esi, [esp + 0x34]
call fcn.00404cfa
lea esi, [esp + 0x18]
call fcn.00404cfa
xor eax, eax
inc eax
jmp 0x40b2ac
cmp ebx, edi
jne 0x40b289
mov ebx, 0x427548
push ebx
push str.LogFilesMd5ToFile_failed__MD5_s
push esi
call fcn.0041524e
add esp, 0xc
lea esi, [esp + 0x34]
call fcn.00404cfa
lea esi, [esp + 0x18]
call fcn.00404cfa
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041ebf6
mov esp, ebp
pop ebp
ret 4