Function at 0x443c40
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push str.pg_twophase__08X
lea ecx, [ebp - 0x404]
push 0x400
push ecx
call sym.postgres.exe_pg_snprintf
push 0
lea edx, [ebp - 0x404]
push 0x8000
push edx
call sym.postgres.exe_BasicOpenFile
mov esi, eax
add esp, 0x1c
test esi, esi
jns 0x443ce3
cmp byte [ebp + 0xc], 0
je 0x443cd2
push 0
push str.ReadTwoPhaseFile
push 0x489
push str.src_backend_access_transam_twophase.c
push 0x13
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x443cd2
lea eax, [ebp - 0x404]
push eax
push str.could_not_open_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
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x428]
push ecx
push esi
call dword [sym.imp.MSVCR100.dll__fstat32]
add esp, 8
test eax, eax
je 0x443d5b
push esi
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
cmp byte [ebp + 0xc], 0
je 0x443cd2
push 0
push str.ReadTwoPhaseFile
push 0x49a
push str.src_backend_access_transam_twophase.c
push 0x13
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x443cd2
lea edx, [ebp - 0x404]
push edx
push str.could_not_stat_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
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x414]
lea ecx, [eax - 0x104]
cmp ecx, 0x3ffffefb
ja 0x443e9e
push ebx
lea ebx, [eax - 4]
lea edx, [ebx + 7]
and edx, 0xfffffff8
mov dword [ebp - 0x42c], ebx
cmp ebx, edx
je 0x443da3
push esi
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
push edi
push eax
mov eax, dword [sym.postgres.exe_CurrentMemoryContext]
push eax
call sym.postgres.exe_MemoryContextAlloc
mov ecx, dword [ebp - 0x414]
push ecx
mov edi, eax
push edi
push esi
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x14
push esi
cmp eax, dword [ebp - 0x414]
je 0x443e3a
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
cmp byte [ebp + 0xc], 0
je 0x443e1e
push 0
push str.ReadTwoPhaseFile
push 0x4ba
push str.src_backend_access_transam_twophase.c
push 0x13
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x443e1e
lea edx, [ebp - 0x404]
push edx
push str.could_not_read_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
push edi
call sym.postgres.exe_pfree
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
cmp dword [edi], 0x57f94532
jne 0x443e1e
mov eax, dword [edi + 4]
cmp eax, dword [ebp - 0x414]
jne 0x443e1e
or ecx, 0xffffffff
mov esi, edi
mov edx, ebx
test ebx, ebx
je 0x443e84
movzx ebx, byte [esi]
mov eax, ecx
shr eax, 0x18
xor eax, ebx
and eax, 0xff
shl ecx, 8
xor ecx, dword [eax*4 + sym.postgres.exe_pg_crc32_table]
inc esi
dec edx
jne 0x443e61
mov ebx, dword [ebp - 0x42c]
not ecx
cmp ecx, dword [edi + ebx]
jne 0x443e1e
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.MSVCR100.dll__close]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop esi
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret