Function at 0x54e4e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x150
mov eax, dword [0x729140]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x158]
push ebp
xor ebp, ebp
mov dword [esp + 0x28], ebx
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x140], ebp
mov byte [esp + 0x144], 0
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x20], eax
push esi
push edi
test ecx, ecx
jne 0x54e545
lea eax, [ecx + 7]
jmp 0x54f887
movzx edi, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
lea esi, [ecx + edi]
cmp esi, 2
jae 0x54e559
xor edx, edx
jmp 0x54e57e
test edx, edx
je 0x54e570
cmp edx, esi
jne 0x54e56f
mov eax, dword [esp + 0x16c]
lea edx, [eax - 2]
add edx, esi
jmp 0x54e577
dec edx
mov eax, dword [esp + 0x16c]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], eax
mov eax, edx
sub eax, ecx
mov dword [esp + 0x54], esi
lea ecx, [eax + esi]
cmp ecx, edi
jne 0x54e5a1
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x54e5b5
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [esp + 0x40], ecx
mov edi, dword [ecx]
bswap edi
mov dword [esp + 0x48], edi
mov ebx, edi
mov dword [esp + 0x5c], edi
lea edi, [esi*4]
mov eax, dword [esp + 0x28]
cmp ebx, dword [eax + 0x2c]
jbe 0x54e606
push 0x6e6444
push 0x102e0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00538340
mov ebx, 0xb
add esp, 0x14
mov dword [esp + 0x14], ebx
jmp 0x54e689
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x54e685
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 8]
mov dword [esp + edi + 0xb8], eax
cmp byte [eax], 0
jne 0x54e67d
push dword [esp + 0x28]
mov edx, ebx
call fcn.00548d10
mov ecx, dword [esp + edi + 0xbc]
add esp, 4
call fcn.00548b30
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x54e67d
mov ecx, dword [esp + edi + 0xb8]
test ecx, ecx
je 0x54e689
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x54e676
call fcn.00541ce0
jmp 0x54e689
call fcn.0053e370
jmp 0x54e689
xor ebx, ebx
mov dword [esp + 0x14], ebx
jmp 0x54e689
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x54e813
mov ecx, dword [esp + edi + 0xb8]
cmp dword [ecx + 0x14], ebx
jge 0x54e6b8
call fcn.00548900
mov ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x54e7e7
mov ecx, esi
sub edi, 4
dec esi
test ecx, ecx
je 0x54e866
mov ebx, dword [esp + 0x30]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x54e71a
mov eax, dword [esp + 0x44]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x54e71a
mov eax, dword [ebx + 0x24]
push eax
mov dword [esp + edi + 0x154], eax
mov ebx, dword [eax]
mov eax, dword [esp + 0x34]
bswap ebx
push eax
mov dword [esp + 0x50], ebx
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x64], ebx
call eax
movzx eax, ax
add esp, 8
mov dword [esp + edi + 0xd8], eax
mov eax, dword [esp + 0x30]
mov byte [eax + 0xc], 0
jmp 0x54e5d1
mov ecx, dword [esp + 0x44]
movzx eax, dl
sub ecx, eax
mov eax, dword [ebx + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
mov ebx, dword [ebx + 0x38]
movzx ecx, cx
and ecx, eax
add ebx, ecx
push ebx
mov dword [esp + edi + 0x154], ebx
mov eax, dword [ebx]
bswap eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [eax + 0x4c]
call eax
movzx edx, ax
add esp, 8
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], edx
mov dword [esp + edi + 0xd8], edx
test byte [eax + 0x16], 0xc
je 0x54e7c0
mov eax, dword [esp + 0x30]
mov ecx, ebx
mov ebp, dword [esp + 0x28]
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
cmp eax, dword [ebp + 0x24]
mov ebp, 0
jg 0x54e7f0
mov eax, dword [esp + 0x64]
push edx
add eax, ecx
push ebx
push eax
call fcn.0064c510
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
sub eax, dword [ecx + 0x38]
add eax, ebx
mov dword [esp + edi + 0x150], eax
jmp 0x54e7c4
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
push eax
movzx eax, byte [ecx + 0xc]
push edx
mov edx, dword [esp + 0x4c]
sub edx, eax
add edx, esi
call fcn.0054d700
mov ebx, dword [esp + 0x40]
add esp, 8
jmp 0x54e5d1
lea eax, [esi*4]
jmp 0x54e816
push 0x6e6444
push 0x1182d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00538340
add esp, 0x14
mov ebx, 0xb
lea eax, [edi + 4]
push eax
lea eax, [esp + 0xbc]
push 0
push eax
call fcn.0064d010
add esp, 0xc
mov ebp, dword [esp + 0x3c]
xor esi, esi
test ebp, ebp
jle 0x54f855
nop word [eax + eax]
mov ecx, dword [esp + esi*4 + 0xb8]
test ecx, ecx
je 0x54f84c
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x54f847
call fcn.00541ce0
jmp 0x54f84c
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x20]
mov eax, 0xaaaaaaab
lea ecx, [esi - 8]
mul ecx
mov edi, edx
shr edi, 2
add edi, 4
imul edi, dword [esp + 0x3c]
add edi, 3
and edi, 0xfffffffc
lea ebx, [edi + edi*2]
lea eax, [esi + ebx*2]
cdq
push edx
push eax
call fcn.005356a0
mov esi, eax
add esp, 8
mov dword [esp + 0x80], esi
test esi, esi
jne 0x54e8b0
lea ebx, [eax + 7]
jmp 0x54e829
mov ecx, dword [esp + 0xb8]
lea eax, [esi + edi*4]
mov dword [esp + 0x84], eax
lea eax, [esi + ebx*2]
mov dword [esp + 0x24], eax
mov dword [esp + 0x7c], ecx
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x4c], eax
mov al, byte [ecx + 3]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x20], eax
cmp dword [esp + 0x3c], eax
jle 0x54eb2c
nop dword [eax]
shl eax, 2
mov dword [esp + 0x50], eax
mov ebx, dword [esp + eax + 0xb8]
mov dword [esp + 0x60], ebx
movzx eax, word [ebx + 0x1a]
mov edi, dword [ebx + 0x38]
mov ecx, eax
movzx esi, word [ebx + 0x12]
movzx edx, word [ebx + 0x18]
add esi, edi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x18], edi
mov ecx, dword [eax + 0x38]
mov al, byte [edi]
mov dword [esp + 0x38], esi
cmp al, byte [ecx]
jne 0x54ed1f
movzx eax, byte [ebx + 0xc]
mov ecx, dword [esp + 0x84]
add eax, edx
add eax, eax
push eax
mov eax, dword [esp + 0x7c]
push 0
lea eax, [ecx + eax*2]
push eax
call fcn.0064d010
mov al, byte [ebx + 0xc]
add esp, 0xc
test al, al
je 0x54ea02
movzx edx, word [ebx + 0x1c]
cmp dword [esp + 0x6c], edx
jb 0x54ecf7
test edx, edx
je 0x54e9cb
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x78]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, bx
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x80]
add ecx, edi
mov dword [eax + ebp*4], ecx
inc ebp
sub edx, 1
jne 0x54e994
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x38], esi
mov al, byte [ebx + 0xc]
xor edx, edx
test al, al
je 0x54ea02
mov ebp, dword [esp + 0x78]
lea ecx, [ebx + 0x24]
mov esi, dword [esp + 0x80]
nop
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ebp*4], eax
inc edx
movzx eax, byte [ebx + 0xc]
inc ebp
cmp edx, eax
jl 0x54e9e0
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x34]
movzx eax, word [ebx + 0x12]
xor edx, edx
movzx ecx, word [ebx + 0x18]
add eax, edi
lea eax, [eax + ecx*2]
xor ecx, ecx
mov edi, eax
sub edi, esi
inc edi
shr edi, 1
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x54ea64
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x78]
nop dword [eax + eax]
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
mov eax, dword [esp + 0x74]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x80]
add ecx, ebx
mov dword [eax + ebp*4], ecx
inc ebp
cmp edx, edi
jb 0x54ea30
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x78]
mov dword [esp + edx + 0x11c], edi
cmp eax, dword [esp + 0x54]
jge 0x54eb1d
cmp byte [esp + 0x13], 0
jne 0x54eb1d
movzx eax, word [esp + edx + 0xd8]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x24]
push eax
push dword [esp + edx + 0x154]
add esi, ebp
mov word [ecx + edi*2], ax
add ebp, eax
push esi
mov dword [esp + 0x40], ebp
call fcn.0064c510
mov ecx, dword [esp + 0x58]
add esp, 0xc
mov edx, dword [esp + 0x84]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0x80]
mov dword [esi + edi*4], eax
sub word [edx + edi*2], cx
cmp byte [ebx + 8], 0
jne 0x54eaed
mov eax, dword [ebx + 0x38]
mov ecx, dword [esi + edi*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x54eb14
cmp word [edx + edi*2], 4
jae 0x54eb14
mov eax, dword [esp + 0x24]
nop dword [eax + eax]
mov byte [eax + ebp], 0
inc ebp
inc word [edx + edi*2]
cmp word [edx + edi*2], 4
jb 0x54eb00
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x20]
inc edi
mov dword [esp + 0x78], edi
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x3c]
jl 0x54e900
mov eax, dword [esp + 0x4c]
xor ecx, ecx
movzx edi, ax
xor ebx, ebx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov eax, dword [eax + 0x24]
add eax, 0xfffffff4
add edi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], edi
test eax, eax
jle 0x54ec29
nop dword [eax + eax]
mov esi, dword [esp + ebx*4 + 0xb8]
mov edx, dword [esp + ebx*4 + 0x11c]
mov dword [esp + 0x50], edx
mov eax, dword [esi + 0x3c]
mov dword [esp + ecx*4 + 0x88], eax
mov dword [esp + ecx*4 + 0xa0], edx
test ecx, ecx
je 0x54eb95
cmp edx, dword [esp + ecx*4 + 0x9c]
jne 0x54eb95
dec ecx
mov dword [esp + 0x20], ecx
cmp byte [esp + 0x13], 0
jne 0x54ebb9
mov eax, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0x3c]
mov dword [esp + ecx*4 + 0x88], eax
lea eax, [edx + 1]
mov dword [esp + ecx*4 + 0xa0], eax
sub edi, dword [esi + 0x14]
lea eax, [esp + 0xd8]
lea eax, [eax + ebx*4]
xor ebp, ebp
mov dword [eax], edi
cmp byte [esi + 0xc], 0
mov dword [esp + 0x54], eax
jbe 0x54ec08
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
movzx eax, ax
lea ebx, [ebx + 4]
add eax, 2
inc ebp
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ebp, eax
jl 0x54ebd7
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x24]
mov dword [eax], edi
mov eax, dword [esp + 0x3c]
inc ecx
mov edi, dword [esp + 0x34]
mov dword [esp + ebx*4 + 0xec], edx
inc ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
cmp ebx, eax
jl 0x54eb60
mov dword [esp + 0x20], 0
mov edx, eax
mov dword [esp + 0x18], edx
test eax, eax
jle 0x54ee9c
mov ecx, dword [esp + 0x78]
mov ebx, 1
mov dword [esp + 0x38], ebx
xor ebp, ebp
nop
mov esi, dword [esp + ebp + 0xd8]
cmp esi, edi
jle 0x54ed6d
nop
cmp ebx, edx
jl 0x54ec8d
lea edx, [ebx + 1]
mov dword [esp + 0x18], edx
cmp edx, 5
jg 0x54ee4c
mov dword [esp + ebp + 0xdc], 0
mov esi, dword [esp + ebp + 0xd8]
mov dword [esp + ebp + 0xf0], ecx
mov edi, dword [esp + ebp + 0xec]
mov ecx, dword [esp + 0x84]
lea ebx, [edi - 1]
movzx eax, word [ecx + ebx*2]
test ax, ax
jne 0x54ecbc
mov edx, ebx
lea ecx, [esp + 0x78]
call fcn.0054dab0
mov ecx, dword [esp + 0x84]
movzx eax, ax
movzx eax, ax
add eax, 2
sub esi, eax
cmp byte [esp + 0x13], 0
mov dword [esp + ebp + 0xd8], esi
jne 0x54ed49
cmp edi, dword [esp + 0x78]
jge 0x54ed47
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x54ecef
mov edx, edi
lea ecx, [esp + 0x78]
call fcn.0054dab0
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x54ed49
push 0x6e6444
push 0x11888
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00538340
add esp, 0x14
mov ebx, 0xb
jmp 0x54f82a
push 0x6e6444
push 0x11870
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00538340
add esp, 0x14
mov ebx, 0xb
jmp 0x54f82a
xor eax, eax
add dword [esp + ebp + 0xdc], eax
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
mov dword [esp + ebp + 0xec], ebx
mov ebx, dword [esp + 0x38]
cmp esi, dword [esp + 0x34]
jg 0x54ec60
mov edi, dword [esp + ebp + 0xec]
cmp edi, ecx
jge 0x54ee08
mov edx, dword [esp + 0x84]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x54eda5
mov edx, edi
lea ecx, [esp + 0x78]
call fcn.0054dab0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
movzx eax, ax
movzx eax, ax
add eax, 2
add esi, eax
cmp esi, dword [esp + 0x34]
jg 0x54ee2c
inc edi
mov dword [esp + ebp + 0xd8], esi
cmp byte [esp + 0x13], 0
mov dword [esp + ebp + 0xec], edi
jne 0x54edf9
cmp edi, ecx
jge 0x54edf7
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x54edef
mov edx, edi
lea ecx, [esp + 0x78]
call fcn.0054dab0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x54edf9
xor eax, eax
sub dword [esp + ebp + 0xdc], eax
cmp edi, ecx
jl 0x54ed83
mov edx, ebx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x20]
inc ebx
inc eax
mov dword [esp + 0x38], ebx
add ebp, 4
mov dword [esp + 0x20], eax
cmp eax, edx
jge 0x54ee9c
mov edi, dword [esp + 0x34]
jmp 0x54ec50
cmp edi, ecx
jge 0x54ee08
cmp dword [esp + 0x20], 0
jle 0x54ee40
mov eax, dword [esp + ebp + 0xe8]
jmp 0x54ee42
xor eax, eax
cmp edi, eax
jle 0x54ee74
mov edx, dword [esp + 0x18]
jmp 0x54ee0e
push 0x6e6444
push 0x118ed
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00538340
add esp, 0x14
mov ebx, 0xb
jmp 0x54f82a
push 0x6e6444
push 0x1190e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00538340
add esp, 0x14
mov ebx, 0xb
jmp 0x54f82a
lea eax, [edx - 1]
mov ecx, eax
mov dword [esp + 0x38], eax
test ecx, ecx
jle 0x54f002
nop dword [eax]
shl ecx, 2
lea eax, [esp + 0xd8]
add eax, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x70], eax
mov edi, dword [eax]
lea eax, [esp + ecx + 0xd4]
mov dword [esp + 0x6c], eax
mov eax, dword [eax]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xec]
sub eax, 4
mov dword [esp + 0x24], eax
mov ebx, dword [eax + ecx]
mov ecx, dword [esp + 0x84]
lea esi, [ebx - 1]
mov edx, esi
sub edx, dword [esp + 0x58]
inc edx
cmp word [ecx + edx*2], 0
lea ebp, [ecx + edx*2]
jne 0x54ef17
lea ecx, [esp + 0x78]
call fcn.0054dab0
nop dword [eax]
mov ecx, dword [esp + 0x84]
cmp word [ecx + esi*2], 0
mov dword [esp + 0x74], esi
mov dword [esp + 0x50], esi
jne 0x54ef31
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.0054dab0
test edi, edi
je 0x54ef7b
cmp dword [esp + 0x16c], 0
mov edx, ebx
jne 0x54efc1
mov ecx, dword [esp + 0x18]
mov eax, 2
dec ecx
cmp dword [esp + 0x38], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x20]
sub ecx, eax
mov eax, dword [esp + 0x84]
movzx eax, word [eax + esi*2]
sub ecx, eax
movzx eax, word [ebp]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x54efc1
movzx eax, word [ebp]
mov ecx, 0xfffffffe
mov edx, dword [esp + 0x24]
add eax, 2
mov ebx, dword [esp + 0x50]
add edi, eax
mov eax, dword [esp + 0x84]
sub ebp, 2
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov dword [edx + ecx], esi
sub esi, 1
mov edx, dword [esp + 0x74]
jns 0x54ef10
jmp 0x54efc5
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x70]
mov dword [ecx], edi
mov ecx, dword [esp + 0x6c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
cmp ecx, 1
jle 0x54efeb
mov esi, dword [esp + 0x24]
lea eax, [ecx*4]
mov eax, dword [esi + eax - 4]
jmp 0x54efed
xor eax, eax
cmp edx, eax
jle 0x54f06c
dec ecx
mov dword [esp + 0x38], ecx
test ecx, ecx
jg 0x54eeb0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xb8]
xor esi, esi
mov eax, dword [eax + 0x38]
lea ebp, [esi + 1]
movzx ebx, byte [eax]
mov dword [esp + 0x58], ebx
test edx, edx
jle 0x54f16e
mov edi, dword [esp + 0x48]
cmp esi, dword [esp + 0x3c]
jge 0x54f0d6
mov eax, dword [esp + esi*4 + 0xb8]
mov dword [esp + esi*4 + 0xc4], eax
mov dword [esp + esi*4 + 0xb8], 0
mov dword [esp + 0x24], eax
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x54f098
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x54f098
cmp dword [edx + 0x60], 0
je 0x54f094
call fcn.005422b0
jmp 0x54f0bd
push 0x6e6444
push 0x11938
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00538340
add esp, 0x14
mov ebx, 0xb
jmp 0x54f82a
xor eax, eax
jmp 0x54f0bd
mov eax, dword [edx + 0x28]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x54f0c1
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x54f0b8
call fcn.005439a0
jmp 0x54f0bd
call fcn.00543780
mov dword [esp + 0x14], eax
inc dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x54f826
jmp 0x54f163
cmp dword [esp + 0x16c], 0
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x24]
push 0
cmovne edi, ebp
push edi
push eax
call fcn.0054c840
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x54f826
mov edi, dword [esp + 0x24]
mov edx, ebx
mov ecx, edi
call fcn.00548c40
mov ecx, dword [esp + 0x28]
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x78]
mov dword [esp + esi*4 + 0xc4], edi
cmp byte [ecx + 0x11], 0
mov dword [esp + esi*4 + 0x11c], eax
je 0x54f15f
mov edx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x34]
push dword [eax + 4]
push 5
call fcn.00547910
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x54f826
mov edi, dword [esp + 0x5c]
inc esi
cmp esi, dword [esp + 0x18]
jl 0x54f024
mov ebp, dword [esp + 0x2c]
xor ecx, ecx
test ebp, ebp
jle 0x54f1c7
nop dword [eax + eax]
mov eax, dword [esp + ecx*4 + 0xc4]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0x130], edx
mov dword [esp + ecx*4 + 0x100], edx
mov ax, word [eax + 0x1c]
mov word [esp + ecx*2 + 0x150], ax
xor eax, eax
test ecx, ecx
jle 0x54f1c2
nop dword [eax]
cmp dword [esp + eax*4 + 0x130], edx
je 0x54f320
inc eax
cmp eax, ecx
jl 0x54f1b0
inc ecx
cmp ecx, ebp
jl 0x54f180
xor edi, edi
test ebp, ebp
jle 0x54f265
xor esi, esi
lea edx, [esi + 1]
cmp ebp, edx
jle 0x54f1fa
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0x100]
mov ecx, edx
cmp eax, dword [esp + esi*4 + 0x100]
cmovae ecx, esi
inc edx
mov esi, ecx
cmp edx, ebp
jl 0x54f1e0
mov ebx, dword [esp + esi*4 + 0x100]
mov dword [esp + esi*4 + 0x100], 0xffffffff
cmp esi, edi
je 0x54f258
jle 0x54f231
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x2c]
mov eax, dword [esp + esi*4 + 0xc4]
inc edx
add edx, esi
mov ecx, dword [eax + 0x48]
xor eax, eax
mov word [ecx + 0x1c], ax
call fcn.0053e560
mov eax, dword [esp + edi*4 + 0xc4]
mov edx, ebx
mov ecx, dword [eax + 0x48]
mov ax, word [esp + esi*2 + 0x150]
mov word [ecx + 0x1c], ax
call fcn.0053e560
mov eax, dword [esp + edi*4 + 0xc4]
mov dword [eax + 4], ebx
inc edi
cmp edi, ebp
jl 0x54f1d1
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + ebp*4 + 0xc0]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
test bl, 8
jne 0x54f2ac
mov ecx, dword [esp + 0x3c]
cmp ecx, ebp
je 0x54f2ac
lea edx, [esp + 0xb8]
lea eax, [esp + 0xc4]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + ebp*4 + 0xc0]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x11], 0
je 0x54f4b4
mov esi, dword [esp + 0xc4]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x40], 0
movzx eax, byte [esi + 0xc]
movzx ebx, word [esi + 0x18]
add ebx, eax
mov eax, dword [esp + 0x78]
test eax, eax
jle 0x54f4e5
mov edx, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edx
nop dword [eax]
mov ecx, dword [esp + 0x80]
mov ecx, dword [ecx + ebp*4]
mov dword [esp + 0x48], ecx
cmp ebp, ebx
jne 0x54f369
xor edx, edx
cmp byte [esp + 0x13], dl
sete dl
nop dword [eax + eax]
inc edi
cmp edi, dword [esp + 0x2c]
jge 0x54f348
mov esi, dword [esp + edi*4 + 0xc4]
jmp 0x54f34f
push 0x6e6444
push 0x11982
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00538340
add esp, 0x14
mov ebx, 0xb
jmp 0x54f82a
mov esi, dword [esp + edi*4 + 0xb8]
movzx eax, word [esi + 0x18]
movzx ecx, byte [esi + 0xc]
add eax, edx
add ecx, eax
add ebx, ecx
cmp ebp, ebx
je 0x54f310
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x24]
cmp ebp, dword [esp + ecx + 0xec]
mov ecx, dword [esp + 0x48]
jne 0x54f3a0
mov edx, dword [esp + 0x40]
inc edx
mov dword [esp + 0x40], edx
shl edx, 2
cmp byte [esp + 0x13], 0
mov dword [esp + 0x24], edx
mov edx, dword [esp + edx + 0xc4]
mov dword [esp + 0x18], edx
je 0x54f4a7
cmp edi, dword [esp + 0x2c]
jge 0x54f3c0
mov eax, dword [edx + 4]
cmp eax, dword [esp + edi*4 + 0x130]
jne 0x54f3c0
cmp ecx, dword [esi + 0x38]
jb 0x54f3c0
cmp ecx, dword [esi + 0x3c]
jb 0x54f4a3
cmp word [esp + 0x4c], 0
jne 0x54f3ee
lea eax, [esp + 0x1c]
push eax
push dword [edx + 4]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x30]
push 5
bswap edx
call fcn.00547910
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x84]
movzx eax, word [eax + ebp*2]
test ax, ax
jne 0x54f410
mov edx, ebp
lea ecx, [esp + 0x78]
call fcn.0054dab0
mov edx, dword [esp + 0x18]
movzx eax, ax
cmp ax, word [edx + 0x10]
jbe 0x54f491
cmp dword [esp + 0x14], 0
jne 0x54f826
lea eax, [esp + 0x100]
push eax
push dword [esp + 0x4c]
mov eax, dword [edx + 0x50]
push edx
call eax
movzx eax, word [esp + 0x11c]
add esp, 0xc
cmp eax, dword [esp + 0x10c]
jae 0x54f49f
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x48]
cmp edx, ecx
jb 0x54f458
add eax, ecx
cmp edx, eax
jb 0x54f4bd
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
movzx eax, word [esp + 0x11a]
push 3
mov edx, dword [eax + ecx - 4]
mov eax, dword [esp + 0x24]
bswap edx
mov ecx, dword [eax + 0x34]
call fcn.00547910
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jmp 0x54f495
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x54f826
jmp 0x54f4a3
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
inc ebp
cmp ebp, eax
jl 0x54f2f0
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0xc4]
jmp 0x54f4e9
push 0x6e6444
push 0xffc8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00538340
add esp, 0x14
mov ebx, 0xb
jmp 0x54f82a
mov ebp, dword [esp + 0x2c]
lea eax, [ebp - 1]
xor edi, edi
test eax, eax
jle 0x54f63e
nop word [eax + eax]
mov eax, dword [esp + edi*4 + 0xec]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
lea ecx, [ecx + eax*4]
mov ebp, dword [esp + edi*4 + 0xc4]
mov ebx, dword [esp + 0x64]
add ebx, dword [esp + 0x68]
movzx eax, word [edx + eax*2]
mov esi, dword [ecx]
mov dword [esp + 0x58], ebp
mov ebp, dword [esp + 0x4c]
movzx edx, bp
mov ebp, dword [esp + 0x58]
add edx, eax
cmp byte [ebp + 8], 0
jne 0x54f551
mov ecx, dword [ebp + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x54f5f5
cmp byte [esp + 0x13], 0
je 0x54f5dc
lea eax, [esp + 0x130]
push eax
push dword [ecx - 4]
mov eax, dword [ebp + 0x50]
push ebp
call eax
mov edx, dword [esp + 0x140]
add esp, 0xc
mov ecx, dword [esp + 0x130]
mov esi, ebx
test edx, edx
ja 0x54f5c8
jb 0x54f58b
cmp ecx, 0x7f
ja 0x54f59d
mov eax, 1
and cl, 0x7f
mov byte [ebx + 4], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x54f5f5
test edx, edx
ja 0x54f5c8
jb 0x54f5ab
cmp ecx, 0x3fff
ja 0x54f5c8
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 5], cl
or al, 0x80
mov byte [ebx + 4], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x54f5f5
push edx
push ecx
lea ecx, [ebx + 4]
call fcn.00539930
add esp, 8
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x54f5f5
sub esi, 4
cmp eax, 4
jne 0x54f5f5
mov eax, dword [esp + 0x30]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [esp + 0x68], edx
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x30]
push eax
push dword [ebp + 4]
push ebx
push edx
mov edx, dword [esp + 0x54]
push esi
lea edx, [edx + edi]
call fcn.0054d820
mov ebx, dword [esp + 0x30]
add esp, 0x14
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x54f82a
mov ebp, dword [esp + 0x2c]
inc edi
lea eax, [ebp - 1]
cmp edi, eax
jl 0x54f500
mov esi, dword [esp + 0xc4]
mov edi, 1
sub edi, ebp
mov dword [esp + 0x40], edi
cmp edi, ebp
jge 0x54f737
mov ebp, dword [esp + 0xec]
nop dword [eax + eax]
mov eax, edi
lea ebx, [esp + 0x148]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add ebx, ecx
cmp byte [ebx], 0
jne 0x54f71d
test edi, edi
jns 0x54f693
mov eax, dword [esp + ecx*4 + 0x118]
cmp eax, dword [esp + ecx*4 + 0xe8]
jl 0x54f71d
test ecx, ecx
jne 0x54f69f
xor edx, edx
mov esi, ebp
xor eax, eax
jmp 0x54f6d4
cmp ecx, dword [esp + 0x3c]
jge 0x54f6b7
xor edx, edx
cmp byte [esp + 0x13], dl
sete dl
add edx, dword [esp + ecx*4 + 0x118]
jmp 0x54f6bb
mov edx, dword [esp + 0x78]
mov esi, dword [esp + ecx*4 + 0xec]
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + ecx*4 + 0xe8]
sub esi, eax
lea edi, [ecx*4]
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + edi + 0xc8]
push esi
push eax
call fcn.0054df00
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x54f826
mov eax, dword [esp + edi + 0xc4]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + edi + 0xd8]
mov edi, dword [esp + 0x40]
mov byte [ebx], 1
mov dword [eax + 0x14], ecx
inc edi
mov dword [esp + 0x40], edi
cmp edi, dword [esp + 0x2c]
jl 0x54f660
mov esi, dword [esp + 0xc4]
mov ebp, dword [esp + 0x2c]
cmp dword [esp + 0x168], 0
je 0x54f7a2
mov ebx, dword [esp + 0x30]
cmp word [ebx + 0x18], 0
jne 0x54f7a2
movzx eax, byte [ebx + 9]
cmp eax, dword [esi + 0x14]
jg 0x54f7a2
or edx, 0xffffffff
mov ecx, esi
call fcn.00547ec0
mov ecx, dword [esp + 0xc4]
mov edx, ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0054e410
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x54f7f8
mov ecx, dword [esp + 0xc4]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.0054cef0
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x54f7f8
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 0x11], 0
je 0x54f7f4
cmp word [esp + 0x4c], 0
jne 0x54f7f4
xor esi, esi
test ebp, ebp
jle 0x54f7f4
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xc4]
lea edx, [esp + 0x1c]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.00547910
mov ecx, dword [esp + 0x34]
inc esi
add esp, 0xc
cmp esi, ebp
jl 0x54f7c0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x54f7f8
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x3c]
mov esi, ebp
cmp ebp, ebx
jge 0x54f826
mov ecx, dword [esp + esi*4 + 0xb8]
test eax, eax
jne 0x54f81d
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.0054cef0
add esp, 4
inc esi
cmp esi, ebx
jl 0x54f802
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x54e829
mov edx, eax
xor ecx, ecx
call fcn.00535990
jmp 0x54e829
call fcn.0053e370
inc esi
cmp esi, ebp
jl 0x54e840
mov ebp, dword [esp + 0x2c]
xor esi, esi
test ebp, ebp
jle 0x54f885
nop
mov ecx, dword [esp + esi*4 + 0xc4]
test ecx, ecx
je 0x54f880
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x54f87b
call fcn.00541ce0
jmp 0x54f880
call fcn.0053e370
inc esi
cmp esi, ebp
jl 0x54f860
mov eax, ebx
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00634bf3
add esp, 0x150
ret