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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [sym.postgres.exe_ProcGlobal]
mov edx, dword [ecx + 4]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
lea eax, [eax + eax*2]
push edi
mov edi, dword [edx + eax*4]
xor eax, eax
lea edx, [ebp - 0x414]
xor ecx, ecx
push edx
lea ebx, [eax + 8]
mov dword [ebp - 0x40c], esi
mov byte [ebp - 0x410], al
mov word [ebp - 0x40e], cx
mov dword [ebp - 0x414], eax
call fcn.00443900
mov eax, dword [0x8331f0]
mov ecx, dword [eax]
mov eax, dword [0x8331fc]
add eax, 4
add esp, 4
mov dword [ecx + 4], eax
cmp eax, 0x3fffffff
jbe 0x444f56
push 0
push 0x6b0dd8
push 0x3c9
push str.src_backend_access_transam_twophase.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x444f56
push str.two_phase_state_file_maximum_length_exceeded
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x105
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
push edi
push str.pg_twophase__08X
lea ecx, [ebp - 0x404]
push 0x400
push ecx
call sym.postgres.exe_pg_snprintf
push 0x180
lea edx, [ebp - 0x404]
push 0x8501
push edx
call sym.postgres.exe_BasicOpenFile
mov edi, eax
add esp, 0x1c
mov dword [ebp - 0x41c], edi
test edi, edi
jns 0x444fd4
push 0
push 0x6b0dd8
push 0x3dc
push str.src_backend_access_transam_twophase.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x444fd4
lea eax, [ebp - 0x404]
push eax
push str.could_not_create_two_phase_state_file___s_:__m
call sym.postgres.exe_errmsg
add esp, 8
push eax
call sym.postgres.exe_errcode_for_file_access
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov ebx, dword [0x8331f0]
or ecx, 0xffffffff
mov dword [ebp - 0x408], ecx
test ebx, ebx
je 0x445098
jmp 0x444ff0
mov edx, dword [ebx + 4]
mov esi, dword [ebx]
test edx, edx
je 0x445029
lea esp, [esp]
movzx edi, byte [esi]
mov eax, ecx
shr eax, 0x18
xor eax, edi
and eax, 0xff
shl ecx, 8
xor ecx, dword [eax*4 + sym.postgres.exe_pg_crc32_table]
inc esi
dec edx
mov dword [ebp - 0x408], ecx
jne 0x445000
mov edi, dword [ebp - 0x41c]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
push edx
push edi
call dword [sym.imp.MSVCR100.dll__write]
add esp, 0xc
cmp eax, dword [ebx + 4]
je 0x445081
push edi
call dword [sym.imp.MSVCR100.dll__close]
push 0
push 0x6b0dd8
push 0x3e9
push str.src_backend_access_transam_twophase.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x18
test al, al
je 0x445081
push str.could_not_write_two_phase_state_file:__m
call sym.postgres.exe_errmsg
add esp, 4
push eax
call sym.postgres.exe_errcode_for_file_access
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov ebx, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x408]
test ebx, ebx
jne 0x444ff0
mov esi, dword [ebp - 0x40c]
not ecx
push 4
lea eax, [ebp - 0x418]
mov dword [ebp - 0x408], ecx
push eax
not ecx
push edi
mov dword [ebp - 0x418], ecx
call dword [sym.imp.MSVCR100.dll__write]
mov ebx, dword [sym.imp.MSVCR100.dll__close]
add esp, 0xc
cmp eax, 4
je 0x445104
push edi
call ebx
push 0
push 0x6b0dd8
push 0x3fa
push str.src_backend_access_transam_twophase.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x18
test al, al
je 0x445104
push str.could_not_write_two_phase_state_file:__m
call sym.postgres.exe_errmsg
add esp, 4
push eax
call sym.postgres.exe_errcode_for_file_access
push eax
call sym.postgres.exe_errfinish
add esp, 8
push 1
push 0xfffffffffffffffc
push edi
call dword [sym.imp.MSVCR100.dll__lseek]
add esp, 0xc
test eax, eax
jns 0x445154
push edi
call ebx
push 0
push 0x6b0dd8
push 0x403
push str.src_backend_access_transam_twophase.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x18
test al, al
je 0x445154
push str.could_not_seek_in_two_phase_state_file:__m
call sym.postgres.exe_errmsg
add esp, 4
push eax
call sym.postgres.exe_errcode_for_file_access
push eax
call sym.postgres.exe_errfinish
add esp, 8
inc dword [sym.postgres.exe_CritSectionCount]
mov edx, dword [0x8331f0]
mov ecx, dword [sym.postgres.exe_MyPgXact]
push edx
push 0x10
push 1
mov byte [ecx + 0xa], 1
call sym.postgres.exe_XLogInsert
push edx
push eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
call sym.postgres.exe_XLogFlush
add esp, 0x14
cmp dword [sym.postgres.exe_max_wal_senders], 0
jle 0x445192
call sym.postgres.exe_WalSndWakeup
push 4
lea edx, [ebp - 0x408]
push edx
push edi
call dword [sym.imp.MSVCR100.dll__write]
add esp, 0xc
cmp eax, 4
je 0x4451e8
push edi
call ebx
push 0
push 0x6b0dd8
push 0x432
push str.src_backend_access_transam_twophase.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x18
test al, al
je 0x4451e8
push str.could_not_write_two_phase_state_file:__m
call sym.postgres.exe_errmsg
add esp, 4
push eax
call sym.postgres.exe_errcode_for_file_access
push eax
call sym.postgres.exe_errfinish
add esp, 8
push edi
call ebx
add esp, 4
test eax, eax
je 0x44522d
push 0
push 0x6b0dd8
push 0x438
push str.src_backend_access_transam_twophase.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x44522d
push str.could_not_close_two_phase_state_file:__m
call sym.postgres.exe_errmsg
add esp, 4
push eax
call sym.postgres.exe_errcode_for_file_access
push eax
call sym.postgres.exe_errfinish
add esp, 8
xor edi, edi
push edi
push 0x12
call sym.postgres.exe_LWLockAcquire
push 0x12
mov byte [esi + 0x28], 1
call sym.postgres.exe_LWLockRelease
mov eax, dword [esi + 4]
mov ecx, dword [sym.postgres.exe_ProcGlobal]
imul eax, eax, 0x238
add eax, dword [ecx]
push eax
call sym.postgres.exe_ProcArrayAdd
mov edx, dword [sym.postgres.exe_MyPgXact]
mov byte [edx + 0xa], 0
dec dword [sym.postgres.exe_CritSectionCount]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push eax
push ecx
call sym.postgres.exe_SyncRepWaitForLSN
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [0x8331f0], edi
mov dword [0x8331f4], edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret