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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x38], eax
lea edi, [ebp - 0x28]
xor eax, eax
mov esi, dword [ebp + 8]
push 8
mov ebx, dword [ebp + 0x10]
pop ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x403ac9
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x403882
and dword [eax], 0
test ebx, ebx
je 0x403889
and dword [ebx], 0
push 0x4e82b4
push esi
call fcn.0048da25
pop ecx
pop ecx
test eax, eax
jne 0x4038c0
push 0x4e7678
mov edi, 0x4e20
push esi
mov dword [ebp - 0x40], edi
call fcn.0048b4da
pop ecx
push eax
call fcn.004cd1a7
pop ecx
pop ecx
test eax, eax
je 0x4038c5
and dword [ebp - 0x30], 0
jmp 0x4038cf
xor edi, edi
mov dword [ebp - 0x40], edi
push esi
call fcn.00403b90
pop ecx
mov dword [ebp - 0x30], eax
push 0
push edi
push 0
push SQLGetDiagRec
push 3
push 0
push 7
push 1
push esi
call fcn.0041f163
mov edi, eax
add esp, 0x24
cmp edi, 0xffffffff
jne 0x403931
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403ac9
cmp eax, 3
je 0x403ac9
cmp eax, 0xf
je 0x403ac9
cmp eax, 0x35
je 0x403ac9
push eax
push str._GetLastError_
push esi
push str.:6:GetArchiveCheckSum___s___FAILED:_CreateFileTimeOut___FAILED:__s_ld
call fcn.0041cce9
jmp 0x403ac6
push 0
push 0
push dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403a8c
cmp dword [ebp - 0x2c], 4
jb 0x403a8c
push 0
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403a67
cmp dword [ebp - 0x2c], 4
jb 0x403a67
push 0
lea eax, [ebp - 0x2c]
push eax
push 8
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x20
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4039e5
push 0x510
push str.C:UsersOfficeDocumentsVisual_StudioPAULAArchive.c
push str.GetArchiveCheckSum
push edi
call fcn.0041dd98
push str._GetLastError_
push 0x21
push dword [ebp - 0x2c]
push esi
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.0041c80a
add esp, 0x14
jmp 0x403ac9
push 0x517
push str.C:UsersOfficeDocumentsVisual_StudioPAULAArchive.c
push str.GetArchiveCheckSum
push edi
call fcn.0041dd98
mov eax, dword [ebp - 0x2c]
cmp eax, 0x22
jb 0x403a16
push eax
push esi
push str.:4:GetArchiveCheckSum___s___FAILED:_AN_IMPOSSIBLE_EXCEPTION_HAS_OCCURRED:_ReadFile___read_too_many_bytes_____Read__ld___
call fcn.0041c80a
add esp, 0xc
jmp 0x403ac9
mov byte [ebp + eax - 0x28], 0
lea eax, [ebp - 0x28]
push str.222PAULAARCHIVE222JesusIAdoreYou
push eax
call fcn.004cd060
pop ecx
pop ecx
test eax, eax
je 0x403a3a
push dword [ebp - 0x2c]
push esi
push str.:4:GetArchiveCheckSum___s___FAILED:_The_archive_validation_string_was_not_found:_Read__ld_bytes.
jmp 0x403a09
mov edx, dword [ebp - 0x34]
test edx, edx
jne 0x403a50
push esi
push str.GetArchiveCheckSum___s___FAILED:_The_archive_size_was_found_to_be_zero.
call fcn.0041c80a
pop ecx
pop ecx
jmp 0x403ac9
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x403a5c
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
test ebx, ebx
je 0x403a62
mov dword [ebx], edx
xor eax, eax
inc eax
jmp 0x403acb
push 0x505
push str.C:UsersOfficeDocumentsVisual_StudioPAULAArchive.c
push str.GetArchiveCheckSum
push edi
call fcn.0041dd98
push str._GetLastError_
push dword [ebp - 0x2c]
push esi
push str.:7:GetArchiveCheckSum___s___FAILED:_ReadFile___FAILED_to_read_the_Archive_CheckSum:_Only_read__ld_bytes:__s
jmp 0x403ac1
push 0x4fc
push str.C:UsersOfficeDocumentsVisual_StudioPAULAArchive.c
push str.GetArchiveCheckSum
push edi
call fcn.0041dd98
push 0
push dword [ebp - 0x40]
push esi
call fcn.004209b8
add esp, 0xc
test eax, eax
je 0x403ac9
push str._GetLastError_
push dword [ebp - 0x2c]
push esi
push str.:7:GetArchiveCheckSum___s___FAILED:_ReadFile___FAILED_to_read_the_archive_size:_Only_read__ld_bytes:__s
call fcn.0041c80a
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret