Function at 0x450ec0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x14]
or edx, 0xffffffff
lea esi, [edi + 0x20]
mov ecx, ebx
test ebx, ebx
je 0x450f00
jmp 0x450ee0
movzx edi, byte [esi]
mov eax, edx
shr eax, 0x18
xor eax, edi
and eax, 0xff
shl edx, 8
xor edx, dword [eax*4 + sym.postgres.exe_pg_crc32_table]
inc esi
dec ecx
jne 0x450ee0
mov edi, dword [ebp + 8]
movzx eax, byte [edi + 0x18]
xor ecx, ecx
lea ebx, [ebx + edi + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov eax, 8
sar eax, cl
test dword [ebp - 8], eax
je 0x450f88
mov eax, dword [ebx]
mov esi, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, esi
movzx esi, si
shr eax, 0x10
add esi, eax
cmp esi, 0x2000
jg 0x450fe5
mov esi, 0x2018
sub esi, eax
mov dword [ebp - 0xc], esi
mov edi, ebx
je 0x450f83
movzx ecx, byte [edi]
mov eax, edx
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shl edx, 8
xor edx, dword [eax*4 + sym.postgres.exe_pg_crc32_table]
inc edi
dec esi
jne 0x450f60
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
add ebx, esi
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 4
jl 0x450f10
mov ecx, dword [edi + 0x10]
add ecx, edi
cmp ebx, ecx
je 0x45109a
cmp dword [0x833540], 2
mov eax, dword [ebp + 0x14]
mov edx, eax
jne 0x45106d
cmp eax, 0xf
jne 0x45106d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp eax, dword [0x833580]
jne 0x451062
cmp ecx, dword [0x833584]
jne 0x451062
mov edx, 0xe
jmp 0x45106d
cmp dword [0x833540], 2
mov eax, dword [ebp + 0x14]
mov edx, eax
jne 0x451020
cmp eax, 0xf
jne 0x451020
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp eax, dword [0x833580]
jne 0x451015
cmp ecx, dword [0x833584]
jne 0x451015
mov edx, 0xe
jmp 0x451020
mov dword [0x833580], eax
mov dword [0x833584], ecx
push 0
push str.RecordIsValid
push 0xf33
push str.src_backend_access_transamxlog.c
push edx
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x451059
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push str.incorrect_hole_size_in_record_at__X__X
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x833580], eax
mov dword [0x833584], ecx
push 0
push str.RecordIsValid
push 0xf40
push str.src_backend_access_transamxlog.c
push edx
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x451059
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push str.incorrect_total_length_in_record_at__X__X
jmp 0x45104b
lea esi, [edi + 4]
mov ecx, 0x1c
movzx ebx, byte [esi]
mov eax, edx
shr eax, 0x18
xor eax, ebx
and eax, 0xff
shl edx, 8
xor edx, dword [eax*4 + sym.postgres.exe_pg_crc32_table]
inc esi
dec ecx
jne 0x4510a2
not edx
cmp dword [edi], edx
je 0x451134
cmp dword [0x833540], 2
mov eax, dword [ebp + 0x14]
mov edx, eax
jne 0x451100
cmp eax, 0xf
jne 0x451100
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp eax, dword [0x833580]
jne 0x4510f5
cmp ecx, dword [0x833584]
jne 0x4510f5
mov edx, 0xe
jmp 0x451100
mov dword [0x833580], eax
mov dword [0x833584], ecx
push 0
push str.RecordIsValid
push 0xf4d
push str.src_backend_access_transamxlog.c
push edx
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x451059
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push str.incorrect_resource_manager_data_checksum_in_record_at__X__X
jmp 0x45104b
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret