Function at 0x406b60
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4245
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x48], vtable.DatabaseAccessor.0
mov dword [ebp - 0x44], 0x515e68
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x406bac
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x40], ebx
cmp ebx, 0xffffffff
jne 0x406bec
cmp dword [esi + 0x14], 0x10
jb 0x406bd7
mov esi, dword [esi]
push esi
push str.INVALID_HANDLE_VALUE__Target_file_is__s_n
call fcn.00405d90
add esp, 8
xor al, al
jmp 0x406e14
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp - 0x2c]
test esi, esi
jne 0x406c1f
test eax, eax
jne 0x406c1f
push str.Cannot_map_a_file_with_a_length_of_zero._n
call fcn.00405d90
add esp, 4
xor al, al
jmp 0x406e14
push 0
push esi
push eax
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x406c52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.hMapFile_is_NULL:_last_error:__d_n
call fcn.00405d90
add esp, 8
xor al, al
jmp 0x406e14
push esi
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
jne 0x406c84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.lpMapAddress_is_NULL:_last_error:__d_n
call fcn.00405d90
add esp, 8
xor al, al
jmp 0x406e14
mov ecx, esi
call fcn.00406aa0
test al, al
jne 0x406ce4
push str.Error_format_of_bin_condition_file_n
call fcn.00405d90
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406cc6
call esi
push eax
push str._nError__ld_occurred_closing_the_mapping_object_
call fcn.00405d90
add esp, 8
push ebx
call edi
test eax, eax
jne 0x406cdd
call esi
push eax
push str._nError__ld_occurred_closing_the_file_
call fcn.00405d90
add esp, 8
xor al, al
jmp 0x406e14
push dword [esi + 0xc]
mov eax, dword [0x515e20]
mov edi, dword [esi + 8]
add esi, 0x18
push edi
push str._VarCount_d_MaxStringLength_d__n
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edi
call fcn.00405d90
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x406dcb
nop dword [eax]
nop word [eax + eax]
mov eax, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406d40
sub eax, edx
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00402d80
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
mov ecx, dword [0x515e6c]
mov edi, dword [esi + 0x38]
add esi, 0x3c
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
je 0x406d8b
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 4]
mov eax, edi
add edx, dword [ebp - 0x30]
cmp edi, ecx
cmovae eax, ecx
push eax
push esi
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebp - 4], 0
add esi, edi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x406dc1
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406db7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406e30
push edx
push ecx
call fcn.004f1f95
add esp, 8
inc ebx
cmp ebx, dword [ebp - 0x34]
jb 0x406d20
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406df9
call esi
push eax
push str._nError__ld_occurred_closing_the_mapping_object_
call fcn.00405d90
add esp, 8
push dword [ebp - 0x40]
call edi
test eax, eax
jne 0x406e12
call esi
push eax
push str._nError__ld_occurred_closing_the_file_
call fcn.00405d90
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3