Function at 0x406f5e
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
mov dword [ebp - 0x38], eax
push 8
mov byte [ebp - 0x28], bl
pop ecx
xor eax, eax
lea edi, [ebp - 0x27]
rep stosd dword es:[edi], eax
push edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
stosb byte es:[edi], al
call fcn.004010dc
test eax, eax
pop ecx
jne 0x4071f8
cmp esi, ebx
je 0x406fb1
mov dword [esi], ebx
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x406fba
mov dword [eax], ebx
mov edi, dword [ebp - 0x30]
push 0x582f94
push edi
call fcn.004016c2
test eax, eax
pop ecx
pop ecx
jne 0x406ff1
push str..exe
push edi
mov dword [ebp - 0x40], 0x4e20
call fcn.00401721
pop ecx
push eax
call fcn.0050da80
test eax, eax
pop ecx
pop ecx
je 0x406ff4
xor esi, esi
jmp 0x406ffd
mov dword [ebp - 0x40], ebx
push edi
call fcn.0040137f
pop ecx
mov esi, eax
push ebx
push dword [ebp - 0x40]
push ebx
push SQLGetDiagRec
push 3
push ebx
push 7
push 1
push edi
call fcn.004016d1
mov edi, eax
add esp, 0x24
cmp edi, 0xffffffff
jne 0x407060
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4071f8
cmp eax, 3
je 0x4071f8
cmp eax, 0xf
je 0x4071f8
cmp eax, 0x35
je 0x4071f8
push eax
push str._GetLastError_
push dword [ebp - 0x30]
push str.:6:GetArchiveCheckSum___s___FAILED:_CreateFileTimeOut___FAILED:__s_ld
call fcn.00401375
jmp 0x4071f5
push ebx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push edi
call esi
test eax, eax
je 0x4071b8
cmp dword [ebp - 0x2c], 4
jb 0x4071b8
push ebx
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x3c]
push eax
push edi
call esi
test eax, eax
je 0x407191
cmp dword [ebp - 0x2c], 4
jb 0x407191
push ebx
lea eax, [ebp - 0x2c]
push eax
push 8
lea eax, [ebp - 0x44]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0x20
lea eax, [ebp - 0x28]
push eax
push edi
call esi
test eax, eax
jne 0x407104
push 0x50f
push str..Archive.c
push str.GetArchiveCheckSum
push edi
call fcn.00403134
push str._GetLastError_
push 0x21
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push str.:4:GetArchiveCheckSum___s___FAILED:_ReadFile___FAILED_to_read_the_Archive_Validation_String:_Only__ld_bytes_of__ld_could_be_read:__s
call fcn.004020c2
add esp, 0x14
jmp 0x4071f8
push 0x516
push str..Archive.c
push str.GetArchiveCheckSum
push edi
call fcn.00403134
mov eax, dword [ebp - 0x2c]
cmp eax, 0x22
jb 0x407137
push eax
push dword [ebp - 0x30]
push str.:4:GetArchiveCheckSum___s___FAILED:_AN_IMPOSSIBLE_EXCEPTION_HAS_OCCURRED:_ReadFile___read_too_many_bytes_____Read__ld___
call fcn.004020c2
add esp, 0xc
jmp 0x4071f8
mov byte [ebp + eax - 0x28], bl
lea eax, [ebp - 0x28]
push str.222PAULAARCHIVE222JesusIAdoreYou
push eax
call fcn.0050dc60
test eax, eax
pop ecx
pop ecx
je 0x40715c
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push str.:4:GetArchiveCheckSum___s___FAILED:_The_archive_validation_string_was_not_found:_Read__ld_bytes.
jmp 0x40712a
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
jne 0x407177
push dword [ebp - 0x30]
push str.GetArchiveCheckSum___s___FAILED:_The_archive_size_was_found_to_be_zero.
call fcn.004020c2
pop ecx
pop ecx
jmp 0x4071f8
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x407183
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x40718c
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x4071fa
push 0x504
push str..Archive.c
push str.GetArchiveCheckSum
push edi
call fcn.00403134
push str._GetLastError_
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push str.:7:GetArchiveCheckSum___s___FAILED:_ReadFile___FAILED_to_read_the_Archive_CheckSum:_Only_read__ld_bytes:__s
jmp 0x4071f0
push 0x4fb
push str..Archive.c
push str.GetArchiveCheckSum
push edi
call fcn.00403134
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x30]
call fcn.0040125d
add esp, 0xc
test eax, eax
jbe 0x4071f8
push str._GetLastError_
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push str.:7:GetArchiveCheckSum___s___FAILED:_ReadFile___FAILED_to_read_the_archive_size:_Only_read__ld_bytes:__s
call fcn.004020c2
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
leave
ret