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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x83350c]
push ebx
mov bl, byte [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x19c], ecx
jne 0x454c90
mov byte [ebp - 0x18d], 1
cmp bl, 0x40
je 0x454c97
mov byte [ebp - 0x18d], 0
mov eax, dword [0x7a33cc]
mov byte [ebp - 0x185], bl
test eax, eax
jns 0x454cbb
call sym.postgres.exe_RecoveryInProgress
test al, al
jne 0x454cbf
mov dword [0x7a33cc], 1
jmp 0x454ce2
test al, al
jne 0x454ce2
push 0x6b50e0
push 0x2eb
push str.src_backend_access_transamxlog.c
call sym.postgres.exe_elog_start
push str.cannot_make_new_WAL_entries_during_recovery
push 0x14
call sym.postgres.exe_elog_finish
add esp, 0x14
mov al, bl
and al, 0xf
je 0x454d0f
push 0x6b50e0
push 0x2ef
push str.src_backend_access_transamxlog.c
call sym.postgres.exe_elog_start
movzx edx, bl
push edx
push str.invalid_xlog_info_mask__02X
push 0x16
call sym.postgres.exe_elog_finish
add esp, 0x18
cmp dword [sym.postgres.exe_Mode], 0
jne 0x454d34
cmp byte [ebp + 8], 0
je 0x454d34
xor eax, eax
lea edx, [eax + 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], ecx
cmp byte [eax + 0x1d], cl
jne 0x454d60
mov byte [ebp - 0x194], cl
cmp byte [eax + 0x1c], cl
je 0x454d67
mov byte [ebp - 0x194], 1
mov ebx, dword [ebp - 0x1b4]
mov dword [ebp - 0x198], ecx
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x454d88
mov eax, dword [ebx + 4]
add dword [ebp - 0x198], eax
jmp 0x454e44
xor esi, esi
lea ebx, [ebx]
mov eax, dword [ebp + esi*4 - 0x14]
cmp ecx, eax
je 0x454da4
test eax, eax
je 0x454dcd
inc esi
cmp esi, 4
jb 0x454d90
jmp 0x454e1f
cmp byte [ebp + esi - 0x1a0], 0
je 0x454dbd
mov dword [ebx], 0
mov dword [ebx + 4], 0
jmp 0x454e1a
cmp dword [ebx], 0
je 0x454e1a
mov ecx, dword [ebx + 4]
add dword [ebp - 0x198], ecx
jmp 0x454e1a
mov edx, dword [ebp - 0x194]
mov dword [ebp + esi*4 - 0x14], ecx
lea edi, [esi + esi*2]
lea edi, [ebp + edi*8 - 0x164]
lea ecx, [ebp + esi*8 - 0x184]
push edx
call fcn.00449fa0
add esp, 4
test al, al
je 0x454e0c
mov byte [ebp + esi - 0x1a0], 1
mov dword [ebx], 0
mov dword [ebx + 4], 0
jmp 0x454e1a
cmp dword [ebx], 0
je 0x454e1a
mov eax, dword [ebx + 4]
add dword [ebp - 0x198], eax
cmp esi, 4
jb 0x454e44
push 0x6b50e0
push 0x345
push str.src_backend_access_transamxlog.c
call sym.postgres.exe_elog_start
push 4
push str.can_backup_at_most__d_blocks_per_xlog_record
push 0x16
call sym.postgres.exe_elog_finish
add esp, 0x18
mov eax, dword [ebx + 0x10]
xor edi, edi
cmp eax, edi
je 0x454e54
mov ebx, eax
jmp 0x454d73
mov esi, dword [ebp - 0x198]
cmp esi, edi
jne 0x454e8b
cmp byte [ebp - 0x18d], 0
jne 0x454e8b
push 0x6b50e0
push 0x356
push str.src_backend_access_transamxlog.c
call sym.postgres.exe_elog_start
push edi
push str.invalid_xlog_record_length__u
push 0x16
call sym.postgres.exe_elog_finish
add esp, 0x18
cmp byte [ebp - 0x1a0], 0
mov eax, esi
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x18c], eax
je 0x454f6f
mov eax, dword [ebp - 0x14]
or byte [ebp + 0xc], 8
cmp eax, edi
jge 0x454ec4
mov edx, dword [sym.postgres.exe_LocalBufferBlockPointers]
lea ecx, [eax*4 + 4]
sub edx, ecx
mov ecx, dword [edx]
jmp 0x454ed4
mov ecx, dword [sym.postgres.exe_BufferBlocks]
shl eax, 0xd
lea ecx, [eax + ecx - 0x2000]
lea edx, [ebp - 0x104]
mov dword [ebx + 0x10], edx
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x164]
mov dword [ebp - 0xf4], edx
mov ebx, edx
mov dx, word [ebp - 0x14e]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x100], 0x18
lea eax, [esi + 0x18]
mov dword [ebp - 0x64], ecx
cmp dx, di
jne 0x454f27
mov dword [ebp - 0x60], 0x2000
add eax, 0x2000
mov dword [ebp - 0x54], edi
jmp 0x454f69
movzx ecx, word [ebp - 0x150]
lea esi, [ebp - 0xb4]
mov dword [ebp - 0x54], esi
mov ebx, esi
movzx edx, dx
lea esi, [edx + ecx]
add esi, dword [ebp - 0x18c]
add eax, ecx
mov dword [ebp - 0xb4], esi
mov esi, 0x2000
sub esi, edx
sub esi, ecx
add eax, esi
xor edi, edi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0x18c], eax
cmp byte [ebp - 0x19f], 0
je 0x455045
mov ecx, dword [ebp - 0x10]
or byte [ebp + 0xc], 4
cmp ecx, edi
jge 0x454f9a
mov edx, dword [sym.postgres.exe_LocalBufferBlockPointers]
lea ecx, [ecx*4 + 4]
sub edx, ecx
mov ecx, dword [edx]
jmp 0x454faa
mov edx, dword [sym.postgres.exe_BufferBlocks]
shl ecx, 0xd
lea ecx, [ecx + edx - 0x2000]
lea edx, [ebp - 0xf0]
mov dword [ebx + 0x10], edx
lea edx, [ebp - 0x14c]
mov dword [ebp - 0xf0], edx
lea edx, [ebp - 0x50]
mov dword [ebp - 0xe0], edx
mov ebx, edx
mov dx, word [ebp - 0x136]
add eax, 0x18
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0xec], 0x18
mov dword [ebp - 0x50], ecx
cmp dx, di
jne 0x454ffd
mov dword [ebp - 0x4c], 0x2000
add eax, 0x2000
mov dword [ebp - 0x40], edi
jmp 0x45503f
movzx ecx, word [ebp - 0x138]
lea esi, [ebp - 0xa0]
mov dword [ebp - 0x40], esi
mov ebx, esi
movzx esi, dx
lea edx, [esi + ecx]
add edx, dword [ebp - 0x18c]
add eax, ecx
mov dword [ebp - 0xa0], edx
mov edx, 0x2000
sub edx, esi
sub edx, ecx
add eax, edx
xor edi, edi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x18c], eax
cmp byte [ebp - 0x19e], 0
je 0x455118
mov ecx, dword [ebp - 0xc]
or byte [ebp + 0xc], 2
cmp ecx, edi
jge 0x455070
mov edx, dword [sym.postgres.exe_LocalBufferBlockPointers]
lea ecx, [ecx*4 + 4]
sub edx, ecx
mov ecx, dword [edx]
jmp 0x455080
mov edx, dword [sym.postgres.exe_BufferBlocks]
shl ecx, 0xd
lea ecx, [ecx + edx - 0x2000]
lea edx, [ebp - 0xdc]
mov dword [ebx + 0x10], edx
lea edx, [ebp - 0x134]
mov dword [ebp - 0xdc], edx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0xcc], edx
mov ebx, edx
mov dx, word [ebp - 0x11e]
add eax, 0x18
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0xd8], 0x18
mov dword [ebp - 0x3c], ecx
cmp dx, di
jne 0x4550d3
mov dword [ebp - 0x38], 0x2000
add eax, 0x2000
mov dword [ebp - 0x2c], edi
jmp 0x455112
movzx ecx, word [ebp - 0x120]
lea esi, [ebp - 0x8c]
mov dword [ebp - 0x2c], esi
mov ebx, esi
movzx esi, dx
lea edx, [esi + ecx]
add edx, dword [ebp - 0x18c]
add eax, ecx
mov dword [ebp - 0x8c], edx
mov edx, 0x2000
sub edx, esi
sub edx, ecx
add eax, edx
xor edi, edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x18c], eax
cmp byte [ebp - 0x19d], 0
je 0x4551d2
mov edx, dword [ebp - 8]
or byte [ebp + 0xc], 1
cmp edx, edi
jge 0x455143
lea ecx, [edx*4 + 4]
mov edx, dword [sym.postgres.exe_LocalBufferBlockPointers]
sub edx, ecx
mov edx, dword [edx]
jmp 0x455153
mov ecx, dword [sym.postgres.exe_BufferBlocks]
shl edx, 0xd
lea edx, [edx + ecx - 0x2000]
lea ecx, [ebp - 0xc8]
mov dword [ebx + 0x10], ecx
mov si, word [ebp - 0x106]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0xc8], ecx
add eax, 0x18
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc4], 0x18
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0x28], edx
cmp si, di
jne 0x45519e
mov dword [ebp - 0x24], 0x2000
add eax, 0x2000
mov dword [ebp - 0x18], edi
jmp 0x4551cc
movzx ecx, word [ebp - 0x108]
movzx esi, si
lea ebx, [ebp - 0x78]
mov dword [ebp - 0x18], ebx
lea ebx, [esi + ecx]
add ebx, edx
mov edx, 0x2000
sub edx, esi
sub edx, ecx
add eax, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], edx
add eax, edx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x18c], eax
mov esi, dword [ebp - 0x1b4]
or ebx, 0xffffffff
cmp esi, edi
je 0x455218
nop
mov ecx, dword [esi + 4]
mov edx, dword [esi]
cmp ecx, edi
jbe 0x455211
lea esp, [esp]
movzx edi, byte [edx]
mov eax, ebx
shr eax, 0x18
xor eax, edi
and eax, 0xff
shl ebx, 8
xor ebx, dword [eax*4 + sym.postgres.exe_pg_crc32_table]
dec ecx
xor edi, edi
inc edx
cmp ecx, edi
ja 0x4551f0
mov esi, dword [esi + 0x10]
cmp esi, edi
jne 0x4551e0
inc dword [sym.postgres.exe_CritSectionCount]
push edi
push 7
call sym.postgres.exe_LWLockAcquire
mov edx, dword [0x8333c8]
mov esi, dword [ebp - 0x19c]
add esp, 8
cmp edx, dword [esi + 0x14]
jne 0x455244
mov eax, dword [0x8333cc]
cmp eax, dword [esi + 0x18]
je 0x455293
cmp byte [ebp - 0x194], 0
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov dword [0x8333c8], edx
mov dword [0x8333cc], ecx
je 0x455293
xor eax, eax
cmp dword [ebp + eax*4 - 0x14], edi
je 0x45528d
cmp byte [ebp + eax - 0x1a0], 0
jne 0x45528d
mov ecx, dword [ebp + eax*8 - 0x184]
cmp ecx, edx
jb 0x4552cf
jne 0x45528d
mov ecx, dword [0x8333cc]
cmp dword [ebp + eax*8 - 0x180], ecx
jbe 0x4552cf
inc eax
cmp eax, 4
jb 0x455261
cmp byte [esi + 0x1d], 0
jne 0x45529f
cmp byte [esi + 0x1c], 0
je 0x4552f6
cmp byte [ebp - 0x194], 0
jne 0x4552f6
push 7
call sym.postgres.exe_LWLockRelease
mov ecx, dword [ebp - 0x1a4]
mov dl, byte [ebp - 0x185]
add esp, 4
dec dword [sym.postgres.exe_CritSectionCount]
mov dword [ecx + 0x10], edi
mov byte [ebp + 0xc], dl
jmp 0x454d34
push 7
call sym.postgres.exe_LWLockRelease
mov edx, dword [ebp - 0x1a4]
mov al, byte [ebp - 0x185]
add esp, 4
dec dword [sym.postgres.exe_CritSectionCount]
mov dword [edx + 0x10], edi
mov byte [ebp + 0xc], al
jmp 0x454d34
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov edi, eax
sub edi, ecx
add edi, 0x2000
mov byte [ebp - 0x185], 0
mov dword [ebp - 0x194], ecx
cmp edi, 0x20
jae 0x45533e
push 0
call fcn.004544c0
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x185], al
mov eax, dword [esi + 0xc]
mov edi, eax
sub edi, ecx
add esp, 4
mov dword [ebp - 0x194], ecx
add edi, 0x2000
mov ecx, dword [esi + 8]
mov edx, dword [0x83350c]
mov edx, dword [edx + 0x7c]
mov dword [ebp - 0x1a4], ecx
lea ecx, [edx + ecx*8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x1b0], edx
mov edx, dword [ebp - 0x194]
sub ecx, eax
cmp byte [ebp - 0x18d], 0
lea eax, [ecx + edx - 0x2000]
mov dword [ebp - 0x1ac], eax
je 0x455422
and eax, 0xffffff
cmp eax, 0x20
jne 0x455422
push 7
call sym.postgres.exe_LWLockRelease
mov edi, dword [ebp - 0x1ac]
mov esi, dword [ebp - 0x1b0]
add esp, 4
sub edi, 0x20
jne 0x4553af
dec esi
mov edi, 0xff000000
push 0
push 8
call sym.postgres.exe_LWLockAcquire
mov eax, dword [0x83350c]
mov ecx, dword [eax + 0x68]
mov edx, dword [eax + 0x6c]
mov dword [0x833514], ecx
mov ecx, dword [eax + 0x70]
mov eax, dword [eax + 0x74]
add esp, 8
mov dword [0x833518], edx
mov dword [0x83351c], ecx
mov dword [0x833520], eax
cmp esi, ecx
jb 0x45540f
jne 0x4553ed
cmp edi, eax
jbe 0x45540f
push 0
push 0
sub esp, 0x10
mov eax, esp
mov ecx, esi
mov dword [eax], ecx
mov edx, edi
mov dword [eax + 4], edx
mov ecx, edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
call fcn.00452a50
add esp, 0x18
push 8
call sym.postgres.exe_LWLockRelease
add esp, 4
mov eax, esi
mov edx, edi
jmp 0x455820
mov eax, dword [ebp - 0x194]
mov ecx, dword [esi]
mov dword [eax + 4], ecx
mov edx, dword [esi + 4]
mov dword [eax + 8], edx
call sym.postgres.exe_GetCurrentTransactionIdIfAny
mov ecx, dword [ebp - 0x194]
mov edx, dword [ebp - 0x198]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x18c]
add eax, 0x20
mov dword [ecx + 0x10], eax
mov al, byte [ebp + 0xc]
mov dword [ecx + 0x14], edx
mov dl, byte [ebp + 8]
mov byte [ecx + 0x18], al
lea eax, [ecx + 4]
mov byte [ecx + 0x19], dl
mov dword [ebp - 0x19c], eax
mov ecx, 0x1c
mov edx, dword [ebp - 0x19c]
movzx edx, byte [edx]
inc dword [ebp - 0x19c]
mov eax, ebx
shr eax, 0x18
xor eax, edx
and eax, 0xff
shl ebx, 8
xor ebx, dword [eax*4 + sym.postgres.exe_pg_crc32_table]
dec ecx
jne 0x455470
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 0x1ac]
not ebx
mov dword [eax], ebx
mov eax, dword [ebp - 0x1b0]
add dword [esi + 0x10], 0x20
sub edi, 0x20
cmp dword [ebp - 0x18c], 0
mov dword [0x8334f4], eax
mov dword [0x8334f8], ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
je 0x45555b
mov ebx, dword [ebp - 0x1b4]
cmp dword [ebx], 0
jne 0x4554e8
lea ecx, [ecx]
mov ebx, dword [ebx + 0x10]
cmp dword [ebx], 0
je 0x4554e0
test edi, edi
je 0x455512
mov eax, dword [ebx + 4]
cmp eax, edi
jbe 0x45570e
mov ecx, dword [ebx]
mov edx, dword [esi + 0x10]
push edi
push ecx
push edx
call sub.MSVCR100.dll_memcpy
add dword [ebx], edi
sub dword [ebx + 4], edi
add esp, 0xc
sub dword [ebp - 0x18c], edi
push 0
call fcn.004544c0
mov edx, dword [esi + 8]
mov ecx, dword [ebp - 0x18c]
mov byte [ebp - 0x185], al
mov eax, dword [esi + 0xc]
or word [eax + 2], 1
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
add dword [esi + 0x10], 4
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 0x10]
add esp, 4
mov dword [ebp - 0x1a4], edx
add edi, 0x2000
cmp dword [ebp - 0x18c], 0
jne 0x4554d8
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov edi, dword [0x83350c]
sub edx, eax
add edx, 7
and edx, 0xfffffff8
add edx, eax
mov dword [esi + 0x10], edx
mov ebx, dword [edi + 0x7c]
mov edi, dword [ebp - 0x1a4]
lea ebx, [ebx + edi*8]
mov dword [ebp - 0x1a4], ebx
mov ebx, dword [ebx]
mov dword [ebp - 0x1b0], ebx
mov ebx, dword [ebp - 0x1a4]
mov ebx, dword [ebx + 4]
mov ecx, eax
sub ecx, edx
sub ebx, eax
add ecx, 0x2000
cmp byte [ebp - 0x18d], 0
lea eax, [ebx + edx - 0x2000]
mov dword [ebp - 0x1ac], eax
je 0x455734
push 0
push 8
call sym.postgres.exe_LWLockAcquire
mov ecx, dword [0x83350c]
mov edx, dword [ecx + 0x7c]
mov ecx, dword [edx + edi*8]
lea eax, [edx + edi*8]
mov edx, dword [eax + 4]
mov edi, dword [eax + 4]
add esp, 8
push 1
push 0
mov dword [ebp - 0x1a4], edx
mov edx, ecx
mov ebx, ecx
sub esp, 0x10
mov dword [ebp - 0x1a8], ecx
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], edi
mov eax, edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
call fcn.00452a50
push 1
call fcn.004544c0
mov edx, dword [0x83350c]
mov esi, dword [esi + 8]
mov eax, dword [edx + 0x7c]
mov ecx, dword [eax + esi*8]
mov eax, dword [eax + esi*8 + 4]
add esp, 0x1c
sub eax, 0x2000
jne 0x455633
dec ecx
mov eax, 0xff000000
push 0
lea edi, [edx + 0x51c]
push 1
push edi
mov dword [0x833514], ecx
mov dword [0x833518], eax
mov dword [0x83351c], ecx
mov dword [0x833520], eax
mov esi, edx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x455673
push 0x4a5
push str.src_backend_access_transamxlog.c
push edi
call sym.postgres.exe_s_lock
add esp, 0xc
mov eax, dword [0x833514]
mov ecx, dword [0x833518]
mov edx, dword [0x83351c]
mov dword [esi + 0x68], eax
mov eax, dword [0x833520]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x70], edx
mov dword [esi + 0x74], eax
cmp ecx, dword [0x833514]
jb 0x4556b6
mov edx, dword [esi + 0x2c]
cmp edx, dword [0x833514]
jne 0x4556c8
mov eax, dword [esi + 0x30]
cmp eax, dword [0x833518]
jae 0x4556c8
mov ecx, dword [0x833514]
mov edx, dword [0x833518]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov eax, dword [esi + 0x34]
cmp eax, dword [0x83351c]
jb 0x4556e9
mov ecx, dword [esi + 0x34]
cmp ecx, dword [0x83351c]
jne 0x4556fa
mov edx, dword [esi + 0x38]
cmp edx, dword [0x833520]
jae 0x4556fa
mov eax, dword [0x83351c]
mov ecx, dword [0x833520]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
push 8
mov dword [edi], 0
call sym.postgres.exe_LWLockRelease
add esp, 4
xor bl, bl
jmp 0x455776
mov ecx, dword [esi + 0x10]
push eax
mov eax, dword [ebx]
push eax
push ecx
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebx + 4]
sub dword [ebp - 0x18c], eax
add esp, 0xc
sub edi, eax
add dword [esi + 0x10], eax
mov ebx, dword [ebx + 0x10]
jmp 0x45554e
cmp ecx, 0x20
jae 0x455742
mov byte [ebp - 0x185], 1
jmp 0x455755
test edi, edi
jne 0x455754
mov edx, dword [0x83350c]
mov edi, dword [edx + 0x80]
jmp 0x455755
dec edi
mov eax, dword [0x83350c]
mov eax, dword [eax + 0x7c]
mov ecx, dword [eax + edi*8]
mov edx, dword [eax + edi*8 + 4]
mov bl, byte [ebp - 0x185]
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 0x1a4], edx
push 7
call sym.postgres.exe_LWLockRelease
add esp, 4
test bl, bl
je 0x455809
mov esi, dword [0x83350c]
push 0
push 1
lea edi, [esi + 0x51c]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4557b6
push 0x4cb
push str.src_backend_access_transamxlog.c
push edi
call sym.postgres.exe_s_lock
add esp, 0xc
mov ecx, dword [esi + 0x2c]
mov eax, dword [ebp - 0x1a8]
cmp ecx, eax
jb 0x4557d5
mov edx, dword [esi + 0x2c]
cmp edx, eax
jne 0x4557e1
mov ecx, dword [esi + 0x30]
cmp ecx, dword [ebp - 0x1a4]
jae 0x4557e1
mov edx, dword [ebp - 0x1a4]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edx
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x70]
mov dword [0x833514], eax
mov eax, dword [esi + 0x74]
mov dword [0x833518], ecx
mov dword [0x83351c], edx
mov dword [0x833520], eax
mov dword [edi], 0
mov eax, dword [ebp - 0x1b0]
mov edx, dword [ebp - 0x1ac]
mov dword [sym.postgres.exe_XactLastRecEnd], eax
mov dword [0x833500], edx
dec dword [sym.postgres.exe_CritSectionCount]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret