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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x6fb448]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov byte [ebp - 7], al
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401389
add esp, 4
test eax, eax
je 0x4082a2
xor eax, eax
jmp 0x408597
cmp dword [ebp + 0xc], 0
je 0x4082b1
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
cmp dword [ebp + 0x10], 0
je 0x4082c0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
push 0x643fa0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402086
add esp, 8
test eax, eax
jne 0x4082de
mov dword [ebp - 0x3c], 0x4e20
jmp 0x4082e5
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0
je 0x408309
push 0x643fa4
mov edx, dword [ebp + 8]
push edx
call fcn.004021e9
add esp, 4
push eax
call fcn.005b0660
add esp, 8
test eax, eax
jne 0x40831a
mov eax, dword [ebp + 8]
push eax
call fcn.004018d4
add esp, 4
mov dword [ebp - 0x34], eax
jmp 0x408321
mov dword [ebp - 0x34], 0
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
push 0
push SQLGetDiagRec
push 3
push 0
push 7
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.004020c2
add esp, 0x24
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x40838d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 2
je 0x408386
cmp dword [ebp - 0x44], 3
je 0x408386
cmp dword [ebp - 0x44], 0xf
je 0x408386
cmp dword [ebp - 0x44], 0x35
je 0x408386
mov eax, dword [ebp - 0x44]
push eax
push 0x643fac
mov ecx, dword [ebp + 8]
push ecx
push str.:6:GetArchiveCheckSum___s___FAILED:_CreateFileTimeOut___FAILED:__s_ld
call fcn.004018ca
add esp, 0x10
xor eax, eax
jmp 0x408597
push 0
push 0
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x40]
push ecx
push 4
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4083bf
cmp dword [ebp - 0x40], 4
jae 0x408415
push 0x4fb
push 0x644008
push 0x644014
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00401f5a
mov dword [ebp - 0x38], 0
push 0
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004016a4
add esp, 0xc
test eax, eax
jbe 0x40840e
push 0x644028
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.:7:GetArchiveCheckSum___s___FAILED:_ReadFile___FAILED_to_read_the_archive_size:_Only_read__ld_bytes:__s
call fcn.00401014
add esp, 0x10
xor eax, eax
jmp 0x408597
push 0
lea eax, [ebp - 0x40]
push eax
push 4
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408435
cmp dword [ebp - 0x40], 4
jae 0x408475
push 0x504
push 0x6440a0
push 0x6440ac
mov eax, dword [ebp - 0x38]
push eax
call fcn.00401f5a
mov dword [ebp - 0x38], 0
push 0x6440c0
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.:7:GetArchiveCheckSum___s___FAILED:_ReadFile___FAILED_to_read_the_Archive_CheckSum:_Only_read__ld_bytes:__s
call fcn.00401014
add esp, 0x10
xor eax, eax
jmp 0x408597
push 0
lea eax, [ebp - 0x40]
push eax
push 8
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0x40]
push eax
push 0x20
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4084e7
push 0x50f
push 0x64413c
push 0x644148
mov eax, dword [ebp - 0x38]
push eax
call fcn.00401f5a
mov dword [ebp - 0x38], 0
push 0x64415c
push 0x21
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 8]
push edx
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.00401014
add esp, 0x14
xor eax, eax
jmp 0x408597
push 0x516
push 0x6441f8
push str.GetArchiveCheckSum
mov eax, dword [ebp - 0x38]
push eax
call fcn.00401f5a
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x40], 0x22
jb 0x408525
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.:4:GetArchiveCheckSum___s___FAILED:_AN_IMPOSSIBLE_EXCEPTION_HAS_OCCURRED:_ReadFile___read_too_many_bytes_____Read__ld___
call fcn.00401014
add esp, 0xc
xor eax, eax
jmp 0x408597
mov eax, dword [ebp - 0x40]
mov byte [ebp + eax - 0x28], 0
push 0x644294
lea ecx, [ebp - 0x28]
push ecx
call fcn.005b61f0
add esp, 8
test eax, eax
je 0x40855b
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
push eax
push str.:4:GetArchiveCheckSum___s___FAILED:_The_archive_validation_string_was_not_found:_Read__ld_bytes.
call fcn.00401014
add esp, 0xc
xor eax, eax
jmp 0x408597
cmp dword [ebp - 0x2c], 0
jne 0x408576
mov ecx, dword [ebp + 8]
push ecx
push str.GetArchiveCheckSum___s___FAILED:_The_archive_size_was_found_to_be_zero.
call fcn.00401014
add esp, 8
xor eax, eax
jmp 0x408597
cmp dword [ebp + 0xc], 0
je 0x408584
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
je 0x408592
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b0290
mov esp, ebp
pop ebp
ret