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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421139
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 0x427da4
mov esi, 0x4264b0
push esi
mov dword [esp + 0x24], eax
call fcn.00414b27
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.004119ea
add esp, 0x1c
test eax, eax
je 0x40ae75
cmp dword [esp + 0x1c], edi
je 0x40ae75
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
je 0x40ae75
push 0x427e24
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 0x40acd9
push dword [esp + 0x14]
push str.open_file___s__failed
jmp 0x40ae84
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 0x40ad14
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 0x40ad46
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 0x40ad5e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x44]
je 0x40ae27
cmp esi, dword [esp + 0x20]
jb 0x40ad78
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
sub eax, 0x10
call fcn.004052e9
add eax, 0x10
mov dword [esp + 0x14], eax
lea ebx, [esp + 0x14]
mov byte [esp + 0x80], 3
call fcn.004048ce
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 3
jl 0x40adf9
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40adf9
cmp dword [esi - 4], 1
jle 0x40adc4
push dword [esi - 0xc]
mov eax, ebx
push eax
call fcn.004015a1
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x40a8b5
push 1
push 1
push esi
call fcn.0040a488
add esp, 0x18
cmp esi, edi
jne 0x40ade8
xor eax, eax
jmp 0x40adf0
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [esp + 0x14]
call fcn.004014a1
lea eax, [esi - 0x10]
mov byte [esp + 0x80], 2
call main
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x20]
jb 0x40ae19
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add dword [esp + 0x30], 4
mov ebx, dword [esp + 0x28]
jmp 0x40ad5e
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.00404cc5
lea esi, [esp + 0x18]
call fcn.00404cc5
xor eax, eax
inc eax
jmp 0x40aea1
cmp ebx, edi
jne 0x40ae7e
mov ebx, 0x427538
push ebx
push str.LogFilesMd5ToFile_failed__MD5_s
push esi
call fcn.00414b27
add esp, 0xc
lea esi, [esp + 0x34]
call fcn.00404cc5
lea esi, [esp + 0x18]
call fcn.00404cc5
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.0041e4d6
mov esp, ebp
pop ebp
ret 4