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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x59a240]
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.0049f486
pop ecx
test eax, eax
jne 0x403ed7
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x403c90
and dword [eax], 0
test ebx, ebx
je 0x403c97
and dword [ebx], 0
push 0x50aeb0
push esi
call fcn.004a0ea0
pop ecx
pop ecx
test eax, eax
jne 0x403cce
push 0x5096f0
mov edi, 0x4e20
push esi
mov dword [ebp - 0x40], edi
call fcn.0049e595
pop ecx
push eax
call fcn.004ee718
pop ecx
pop ecx
test eax, eax
je 0x403cd3
and dword [ebp - 0x30], 0
jmp 0x403cdd
xor edi, edi
mov dword [ebp - 0x40], edi
push esi
call fcn.00403fe1
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.004286d2
mov edi, eax
add esp, 0x24
cmp edi, 0xffffffff
jne 0x403d3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403ed7
cmp eax, 3
je 0x403ed7
cmp eax, 0xf
je 0x403ed7
cmp eax, 0x35
je 0x403ed7
push eax
push str._GetLastError_
push esi
push str.:6:GetArchiveCheckSum___s___FAILED:_CreateFileTimeOut___FAILED:__s_ld
call fcn.00425c08
jmp 0x403ed4
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 0x403e9a
cmp dword [ebp - 0x2c], 4
jb 0x403e9a
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 0x403e75
cmp dword [ebp - 0x2c], 4
jb 0x403e75
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 0x403df3
push 0x50f
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Archive.c
push str.GetArchiveCheckSum
push edi
call fcn.00426fac
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.004255b9
add esp, 0x14
jmp 0x403ed7
push 0x516
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Archive.c
push str.GetArchiveCheckSum
push edi
call fcn.00426fac
mov eax, dword [ebp - 0x2c]
cmp eax, 0x22
jb 0x403e24
push eax
push esi
push str.:4:GetArchiveCheckSum___s___FAILED:_AN_IMPOSSIBLE_EXCEPTION_HAS_OCCURRED:_ReadFile___read_too_many_bytes_____Read__ld___
call fcn.004255b9
add esp, 0xc
jmp 0x403ed7
mov byte [ebp + eax - 0x28], 0
lea eax, [ebp - 0x28]
push str.222PAULAARCHIVE222JesusIAdoreYou
push eax
call fcn.004ee5d0
pop ecx
pop ecx
test eax, eax
je 0x403e48
push dword [ebp - 0x2c]
push esi
push str.:4:GetArchiveCheckSum___s___FAILED:_The_archive_validation_string_was_not_found:_Read__ld_bytes.
jmp 0x403e17
mov edx, dword [ebp - 0x34]
test edx, edx
jne 0x403e5e
push esi
push str.GetArchiveCheckSum___s___FAILED:_The_archive_size_was_found_to_be_zero.
call fcn.004255b9
pop ecx
pop ecx
jmp 0x403ed7
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x403e6a
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
test ebx, ebx
je 0x403e70
mov dword [ebx], edx
xor eax, eax
inc eax
jmp 0x403ed9
push 0x504
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Archive.c
push str.GetArchiveCheckSum
push edi
call fcn.00426fac
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 0x403ecf
push 0x4fb
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Archive.c
push str.GetArchiveCheckSum
push edi
call fcn.00426fac
push 0
push dword [ebp - 0x40]
push esi
call fcn.0042aa40
add esp, 0xc
test eax, eax
je 0x403ed7
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.004255b9
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret