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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5345d0]
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.0047c3ca
test eax, eax
jne 0x401ea7
cmp esi, ebx
je 0x401ca6
mov dword [esi], ebx
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x401caf
mov dword [eax], ebx
push dword [ebp - 0x30]
mov esi, 0x4d3dec
call fcn.0047c537
test eax, eax
pop ecx
jne 0x401ce5
mov esi, dword [ebp - 0x30]
push str..exe
mov dword [ebp - 0x44], 0x4e20
call fcn.0047cc5e
push eax
call fcn.004b519f
test eax, eax
pop ecx
pop ecx
je 0x401ce8
xor esi, esi
jmp 0x401cf2
mov dword [ebp - 0x44], ebx
mov ecx, dword [ebp - 0x30]
call fcn.004025ba
mov esi, eax
push ebx
push dword [ebp - 0x44]
push SQLGetDiagRec
push 3
push 1
push dword [ebp - 0x30]
call fcn.0041948d
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
jne 0x401d53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x401ea7
cmp eax, 3
je 0x401ea7
cmp eax, 0xf
je 0x401ea7
cmp eax, 0x35
je 0x401ea7
push eax
push str._GetLastError_
push dword [ebp - 0x30]
push str.:6:GetArchiveCheckSum___s___FAILED:_CreateFileTimeOut___FAILED:__s_ld
call fcn.00417db7
jmp 0x401ea4
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 0x401e78
cmp dword [ebp - 0x34], 4
jb 0x401e78
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
lea eax, [ebp - 0x40]
push eax
push edi
call esi
test eax, eax
je 0x401e61
cmp dword [ebp - 0x34], 4
jb 0x401e61
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 0x401de7
call fcn.0041d762
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.004178df
add esp, 0x14
jmp 0x401ea7
call fcn.0041d762
mov eax, dword [ebp - 0x34]
cmp eax, 0x22
jb 0x401e0a
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.004178df
add esp, 0xc
jmp 0x401ea7
mov byte [ebp + eax - 0x2c], bl
lea eax, [ebp - 0x2c]
push str.222PAULAARCHIVE222JesusIAdoreYou
push eax
call fcn.004b5890
test eax, eax
pop ecx
pop ecx
je 0x401e2f
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 0x401dfd
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
jne 0x401e47
push dword [ebp - 0x30]
push str.GetArchiveCheckSum___s___FAILED:_The_archive_size_was_found_to_be_zero.
call fcn.004178df
pop ecx
pop ecx
jmp 0x401ea7
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x401e53
mov edx, dword [ebp - 0x40]
mov dword [eax], edx
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x401e5c
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x401ea9
call fcn.0041d762
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 0x401e9f
call fcn.0041d762
push dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
xor edx, edx
call fcn.0041b6bd
test eax, eax
pop ecx
jbe 0x401ea7
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.004178df
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
leave
ret