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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x3c], eax
push 8
pop ecx
xor eax, eax
mov byte [ebp - 0x2c], bl
lea edi, [ebp - 0x2b]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
stosb byte es:[edi], al
call fcn.0047ebaf
test eax, eax
jne 0x402c8f
cmp esi, ebx
je 0x402a8e
mov dword [esi], ebx
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x402a97
mov dword [eax], ebx
push dword [ebp - 0x30]
mov esi, 0x4d69b8
call fcn.0047ed1c
test eax, eax
pop ecx
jne 0x402acd
mov esi, dword [ebp - 0x30]
push str..exe
mov dword [ebp - 0x44], 0x4e20
call fcn.0047f443
push eax
call fcn.004b763f
test eax, eax
pop ecx
pop ecx
je 0x402ad0
xor esi, esi
jmp 0x402ada
mov dword [ebp - 0x44], ebx
mov ecx, dword [ebp - 0x30]
call fcn.004033a2
mov esi, eax
push ebx
push dword [ebp - 0x44]
push SQLGetDiagRec
push 3
push 1
push dword [ebp - 0x30]
call fcn.0041aa44
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
jne 0x402b3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402c8f
cmp eax, 3
je 0x402c8f
cmp eax, 0xf
je 0x402c8f
cmp eax, 0x35
je 0x402c8f
push eax
push str._GetLastError_
push dword [ebp - 0x30]
push str.:6:GetArchiveCheckSum___s___FAILED:_CreateFileTimeOut___FAILED:__s_ld
call fcn.0041936e
jmp 0x402c8c
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 - 0x34]
push eax
push 4
lea eax, [ebp - 0x38]
push eax
push edi
call esi
test eax, eax
je 0x402c60
cmp dword [ebp - 0x34], 4
jb 0x402c60
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
lea eax, [ebp - 0x40]
push eax
push edi
call esi
test eax, eax
je 0x402c49
cmp dword [ebp - 0x34], 4
jb 0x402c49
push ebx
lea eax, [ebp - 0x34]
push eax
push 8
lea eax, [ebp - 0x48]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x20
lea eax, [ebp - 0x2c]
push eax
push edi
call esi
test eax, eax
jne 0x402bcf
call fcn.0041ed31
push str._GetLastError_
push 0x21
push dword [ebp - 0x34]
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.00418e96
add esp, 0x14
jmp 0x402c8f
call fcn.0041ed31
mov eax, dword [ebp - 0x34]
cmp eax, 0x22
jb 0x402bf2
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.00418e96
add esp, 0xc
jmp 0x402c8f
mov byte [ebp + eax - 0x2c], bl
lea eax, [ebp - 0x2c]
push str.222PAULAARCHIVE222JesusIAdoreYou
push eax
call fcn.004b7d30
test eax, eax
pop ecx
pop ecx
je 0x402c17
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push str.:4:GetArchiveCheckSum___s___FAILED:_The_archive_validation_string_was_not_found:_Read__ld_bytes.
jmp 0x402be5
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
jne 0x402c2f
push dword [ebp - 0x30]
push str.GetArchiveCheckSum___s___FAILED:_The_archive_size_was_found_to_be_zero.
call fcn.00418e96
pop ecx
pop ecx
jmp 0x402c8f
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x402c3b
mov edx, dword [ebp - 0x40]
mov dword [eax], edx
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x402c44
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x402c91
call fcn.0041ed31
push str._GetLastError_
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push str.:7:GetArchiveCheckSum___s___FAILED:_ReadFile___FAILED_to_read_the_Archive_CheckSum:_Only_read__ld_bytes:__s
jmp 0x402c87
call fcn.0041ed31
push dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
xor edx, edx
call fcn.0041cc74
test eax, eax
pop ecx
jbe 0x402c8f
push str._GetLastError_
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push str.:7:GetArchiveCheckSum___s___FAILED:_ReadFile___FAILED_to_read_the_archive_size:_Only_read__ld_bytes:__s
call fcn.00418e96
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
leave
ret