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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4fb744]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], al
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xe8], edx
cmp ecx, eax
jne 0x4540de
pop edi
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3f21
mov esp, ebp
pop ebp
ret
movzx ecx, word [esi + 0x18]
movzx edx, byte [esi + 0xc]
push ebx
lea ebx, [edx + ecx]
cmp ebx, 2
jl 0x45410b
cmp edi, eax
je 0x454103
cmp edi, ebx
jne 0x454100
mov eax, dword [ebp + 0x10]
lea eax, [ebx + eax - 2]
jmp 0x454103
lea eax, [edi - 1]
mov ebx, 2
sub ebx, dword [ebp + 0x10]
mov dword [ebp - 0x100], eax
sub eax, edx
add eax, ebx
lea edi, [ebx + 1]
mov dword [ebp - 0xf4], edi
cmp eax, ecx
jne 0x45412f
movzx ecx, byte [esi + 9]
mov edx, dword [esi + 0x38]
lea eax, [ecx + edx + 8]
jmp 0x454146
mov ecx, dword [esi + 0x40]
mov dx, word [ecx + eax*2]
movzx ecx, word [esi + 0x1a]
mov ah, dl
mov al, dh
movzx eax, ax
and eax, ecx
add eax, dword [esi + 0x38]
mov edi, dword [eax]
bswap edi
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xd8], edi
jmp 0x454160
mov edx, dword [ebp - 0xe8]
cmp edi, dword [edx + 0x2c]
jbe 0x45419e
push 0x4e5fc4
push 0x10026
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043f0f0
mov dword [ebp - 0xc8], 0xb
mov eax, dword [ebp - 0xc8]
add esp, 0x14
jmp 0x454225
push 0
lea ecx, [ebp - 0xd4]
mov eax, edx
mov eax, dword [eax]
mov edx, dword [eax + 0xcc]
push ecx
push edi
push eax
call edx
add esp, 0x10
mov dword [ebp - 0xc8], eax
test eax, eax
jne 0x45421b
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ecx + 8]
cmp byte [eax], 0
mov dword [ebp + ebx*4 - 0x114], eax
jne 0x454223
cmp edi, dword [eax + 4]
je 0x4541ff
mov edx, dword [ecx + 4]
cmp edi, 1
mov dword [eax + 0x38], edx
setne dl
dec dl
mov dword [eax + 0x48], ecx
mov ecx, dword [ebp - 0xe8]
and dl, 0x64
mov dword [eax + 0x34], ecx
mov dword [eax + 4], edi
mov byte [eax + 9], dl
mov edi, eax
call fcn.00451320
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x454223
test edi, edi
je 0x45421b
mov eax, edi
call fcn.004174b0
mov eax, dword [ebp - 0xc8]
jmp 0x454225
xor eax, eax
mov dword [ebp - 0xd0], eax
test eax, eax
jne 0x45435b
mov edi, dword [ebp + ebx*4 - 0x114]
cmp dword [edi + 0x14], eax
jge 0x454252
call fcn.00451110
mov dword [ebp - 0xd0], eax
test eax, eax
jne 0x454379
mov eax, ebx
dec ebx
test eax, eax
je 0x454397
mov al, byte [esi + 0xc]
test al, al
je 0x45429f
movzx ecx, word [esi + 0x1c]
mov edx, dword [ebp - 0x100]
add edx, ebx
cmp edx, ecx
jne 0x45429f
mov eax, dword [esi + 0x24]
mov edi, dword [eax]
push eax
mov dword [ebp + ebx*4 - 0x10], eax
mov eax, dword [esi + 0x4c]
bswap edi
push esi
mov dword [ebp - 0xd8], edi
call eax
movzx ecx, ax
add esp, 8
mov dword [ebp + ebx*4 - 0x2c], ecx
mov byte [esi + 0xc], 0
jmp 0x454160
mov ecx, dword [esi + 0x40]
movzx edx, al
mov eax, dword [ebp - 0x100]
sub eax, edx
add eax, ebx
mov dx, word [ecx + eax*2]
mov ah, dl
mov al, dh
movzx edx, word [esi + 0x1a]
movzx ecx, ax
mov eax, dword [esi + 0x38]
and ecx, edx
add eax, ecx
mov ecx, dword [eax]
bswap ecx
push eax
mov dword [ebp - 0xd8], ecx
mov ecx, dword [esi + 0x4c]
push esi
mov dword [ebp + ebx*4 - 0x10], eax
call ecx
mov edx, dword [ebp - 0xe8]
movzx edi, ax
add esp, 8
test byte [edx + 0x16], 0xc
mov dword [ebp + ebx*4 - 0x2c], edi
je 0x45432b
mov eax, dword [ebp + ebx*4 - 0x10]
sub eax, dword [esi + 0x38]
lea ecx, [edi + eax]
cmp ecx, dword [edx + 0x24]
jg 0x4554c1
mov ecx, dword [ebp + ebx*4 - 0x10]
push edi
push ecx
mov ecx, dword [ebp - 0x118]
add ecx, eax
push ecx
call fcn.004b4d50
mov edx, dword [ebp - 0x118]
sub edx, dword [esi + 0x38]
add esp, 0xc
add edx, dword [ebp + ebx*4 - 0x10]
mov dword [ebp + ebx*4 - 0x10], edx
mov esi, dword [ebp - 0x104]
movzx ecx, byte [esi + 0xc]
mov edx, dword [ebp - 0x100]
lea eax, [ebp - 0xd0]
push eax
sub edx, ecx
add edx, ebx
push edi
push edx
call fcn.00453190
mov edi, dword [ebp - 0xd8]
add esp, 0xc
jmp 0x454160
lea eax, [ebx*4 + 4]
push eax
lea ecx, [ebp - 0x114]
push 0
push ecx
call fcn.004b3f30
add esp, 0xc
jmp 0x45550b
lea edx, [ebx*4]
push edx
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004b3f30
add esp, 0xc
jmp 0x45550b
mov ecx, dword [ebp - 0xe8]
mov ecx, dword [ecx + 0x20]
mov edi, dword [ebp - 0xf4]
lea edx, [ecx - 8]
mov eax, 0xaaaaaaab
mul edx
mov esi, edx
shr esi, 2
add esi, 4
imul esi, edi
add esi, 3
and esi, 0xfffffffc
lea eax, [esi + esi*2]
lea eax, [ecx + eax*2]
cdq
push edx
push eax
call fcn.00426d80
add esp, 8
mov dword [ebp - 0xbc], eax
test eax, eax
jne 0x4543eb
mov dword [ebp - 0xd0], 7
jmp 0x45550b
lea eax, [eax + esi*4]
lea ecx, [eax + esi*2]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x114]
movzx edx, byte [eax + 8]
add dx, dx
add dx, dx
mov dword [ebp - 0xdc], ecx
movzx ecx, dx
movzx edx, byte [eax + 3]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0xfc], edx
mov dword [ebp - 0xcc], 0
test edi, edi
jle 0x4546a1
jmp 0x454440
mov eax, dword [ebp - 0xcc]
mov edi, dword [ebp + eax*4 - 0x114]
movzx ecx, word [edi + 0x1a]
mov ebx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov edx, dword [ebp - 0x114]
lea eax, [ebp + eax*4 - 0x114]
movzx eax, word [edi + 0x18]
mov dword [ebp - 0xc8], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 0xe4], ecx
mov cl, byte [ebx]
add esi, ebx
cmp cl, byte [eax]
jne 0x4547f5
movzx edx, byte [edi + 0xc]
add edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xc4]
add edx, edx
push edx
lea edx, [eax + ecx*2]
push 0
push edx
call fcn.004b3f30
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x45455d
movzx eax, word [edi + 0x1c]
cmp dword [ebp - 0xc8], eax
jl 0x454881
test eax, eax
jle 0x454508
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc4]
mov cx, word [esi]
mov dh, cl
add esi, 2
inc eax
mov dl, ch
movzx ecx, word [ebp - 0xe4]
movzx edx, dx
and edx, ecx
mov ecx, dword [ebp - 0xbc]
add edx, ebx
dec dword [ebp - 0xc8]
mov dword [ecx + eax*4 - 4], edx
jne 0x4544d5
mov dword [ebp - 0xc4], eax
jmp 0x454514
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xbc]
cmp byte [edi + 0xc], 0
mov dword [ebp - 0xec], 0
jbe 0x454563
lea edx, [edi + 0x24]
mov dword [ebp - 0xc8], edx
lea ecx, [ecx]
mov edx, dword [ebp - 0xc8]
mov edx, dword [edx]
inc dword [ebp - 0xec]
add dword [ebp - 0xc8], 4
mov dword [ecx + eax*4], edx
movzx edx, byte [edi + 0xc]
inc eax
cmp dword [ebp - 0xec], edx
jl 0x454530
mov dword [ebp - 0xc4], eax
jmp 0x454563
mov eax, dword [ebp - 0xc4]
movzx edx, word [edi + 0x12]
movzx ecx, word [edi + 0x18]
add edx, ebx
lea ecx, [edx + ecx*2]
mov dword [ebp - 0xc8], ecx
cmp esi, ecx
jae 0x4545b5
movzx ecx, word [ebp - 0xe4]
mov dword [ebp - 0xd4], ecx
mov dx, word [esi]
mov ch, dl
add esi, 2
inc eax
mov cl, dh
movzx edx, cx
and edx, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xbc]
add edx, ebx
mov dword [ecx + eax*4 - 4], edx
cmp esi, dword [ebp - 0xc8]
jb 0x454587
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xcc]
dec edx
mov dword [ebp + ecx*4 - 0x6c], eax
cmp ecx, edx
jge 0x454688
cmp dword [ebp - 0xfc], 0
jne 0x454688
mov edx, dword [ebp - 0xdc]
mov ebx, dword [ebp - 0xb8]
mov esi, dword [ebp - 0xc4]
mov eax, ecx
movzx eax, word [ebp + eax*4 - 0x2c]
mov ecx, dword [ebp - 0xf8]
add edx, ecx
add ecx, eax
push eax
mov word [ebx + esi*2], ax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xf8], ecx
mov ecx, dword [ebp + eax*4 - 0x10]
push ecx
push edx
mov dword [ebp - 0xd4], edx
call fcn.004b4d50
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0xbc]
movzx edx, ax
add edx, dword [ebp - 0xd4]
add esp, 0xc
mov dword [ecx + esi*4], edx
sub word [ebx + esi*2], ax
cmp byte [edi + 8], 0
jne 0x454652
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + esi*4]
mov edx, dword [eax + 8]
mov dword [ecx], edx
jmp 0x45467b
cmp word [ebx + esi*2], 4
jae 0x45467b
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xdc]
mov byte [ecx + eax], 0
inc word [ebx + esi*2]
inc eax
cmp word [ebx + esi*2], 4
jb 0x454665
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xcc]
inc esi
mov dword [ebp - 0xc4], esi
inc ecx
mov dword [ebp - 0xcc], ecx
cmp ecx, dword [ebp - 0xf4]
jl 0x454440
mov edi, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xe8]
movzx eax, word [ebp - 0x108]
mov edx, dword [ecx + 0x24]
xor ecx, ecx
lea eax, [edx + eax - 0xc]
xor ebx, ebx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xcc], ecx
test edi, edi
jle 0x4547a3
lea ecx, [ecx]
mov esi, dword [ebp + ecx*4 - 0x114]
mov edx, dword [esi + 0x3c]
mov eax, dword [ebp + ecx*4 - 0x6c]
mov dword [ebp + ebx*4 - 0xb4], edx
mov dword [ebp + ebx*4 - 0x9c], eax
test ebx, ebx
je 0x4546fa
cmp eax, dword [ebp + ebx*4 - 0xa0]
jne 0x4546fa
dec ebx
cmp dword [ebp - 0xfc], 0
jne 0x45471c
mov edx, dword [ebp - 0x104]
mov edx, dword [edx + 0x3c]
inc ebx
inc eax
mov dword [ebp + ebx*4 - 0xb4], edx
mov dword [ebp + ebx*4 - 0x9c], eax
mov eax, dword [ebp - 0xf8]
sub eax, dword [esi + 0x14]
cmp byte [esi + 0xc], 0
mov dword [ebp + ecx*4 - 0x2c], eax
mov dword [ebp - 0xe4], 0
jbe 0x45478b
mov edi, eax
lea eax, [esi + 0x24]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ecx]
mov eax, dword [esi + 0x4c]
push edx
push esi
call eax
movzx edx, byte [esi + 0xc]
add dword [ebp - 0xc8], 4
movzx ecx, ax
mov eax, dword [ebp - 0xe4]
inc eax
add esp, 8
lea edi, [edi + ecx + 2]
mov dword [ebp - 0xe4], eax
cmp eax, edx
jl 0x454744
mov eax, dword [ebp - 0xcc]
mov dword [ebp + eax*4 - 0x2c], edi
mov edi, dword [ebp - 0xf4]
mov ecx, eax
mov eax, dword [ebp + ecx*4 - 0x6c]
mov dword [ebp + ecx*4 - 0x40], eax
inc ecx
inc ebx
mov dword [ebp - 0xcc], ecx
cmp ecx, edi
jl 0x4546d0
xor edx, edx
mov dword [ebp - 0xec], edi
mov dword [ebp - 0xcc], edx
cmp edi, edx
jle 0x454a75
lea ecx, [ebp - 0x40]
mov eax, 1
sub ecx, 4
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xe4], ecx
jmp 0x4547e0
mov ecx, dword [ebp + edx - 0x2c]
cmp ecx, dword [ebp - 0xf8]
jle 0x45495e
jmp 0x454896
push 0x4e5fc4
push 0x11595
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043f0f0
mov dword [ebp - 0xd0], 0xb
add esp, 0x14
mov esi, dword [ebp - 0xbc]
test esi, esi
je 0x45550b
cmp dword [0x4fa060], 0
je 0x455501
mov eax, dword [0x61e1b8]
test eax, eax
je 0x45484b
push eax
call dword [0x4fa0b0]
add esp, 4
push esi
call dword [0x4fa08c]
sub dword [0x61e158], eax
dec dword [0x61e17c]
push esi
call dword [0x4fa084]
mov eax, dword [0x61e1b8]
add esp, 8
test eax, eax
je 0x45550b
push eax
call dword [0x4fa0b8]
jmp 0x455508
push 0x4e5fc4
push 0x115ad
jmp 0x4547ff
mov eax, dword [ebp - 0xc8]
cmp eax, dword [ebp - 0xec]
jl 0x4548c0
inc eax
mov dword [ebp - 0xec], eax
cmp eax, 5
jg 0x454bc3
mov eax, dword [ebp - 0xc4]
mov dword [ebp + edx - 0x28], 0
mov dword [ebp + edx - 0x3c], eax
mov ebx, dword [ebp + edx - 0x40]
mov ecx, dword [ebp - 0xb8]
lea eax, [ebx - 1]
mov dword [ebp - 0xd4], eax
movzx eax, word [ecx + eax*2]
test ax, ax
jne 0x4548f6
mov edi, dword [ebp - 0xd4]
lea esi, [ebp - 0xc4]
call fcn.00417820
mov edx, dword [ebp - 0xdc]
movzx eax, ax
movzx eax, ax
add eax, 2
sub dword [ebp + edx - 0x2c], eax
cmp dword [ebp - 0xfc], 0
jne 0x454940
cmp ebx, dword [ebp - 0xc4]
jge 0x45493e
mov eax, dword [ebp - 0xb8]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x454936
mov edi, ebx
lea esi, [ebp - 0xc4]
call fcn.00417820
mov edx, dword [ebp - 0xdc]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x454940
xor eax, eax
add dword [ebp + edx - 0x28], eax
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp + edx - 0x40], ecx
cmp dword [ebp + edx - 0x2c], eax
jg 0x454890
mov ecx, dword [ebp - 0xc4]
cmp dword [ebp + edx - 0x40], ecx
lea ebx, [ebp + edx - 0x40]
jge 0x454a10
mov edi, dword [ebx]
mov eax, dword [ebp - 0xb8]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x454997
lea esi, [ebp - 0xc4]
call fcn.00417820
mov edx, dword [ebp - 0xdc]
movzx eax, ax
mov ecx, dword [ebp + edx - 0x2c]
movzx eax, ax
add eax, 2
add ecx, eax
cmp ecx, dword [ebp - 0xf8]
jg 0x454a10
mov edx, dword [ebp - 0xdc]
inc edi
cmp dword [ebp - 0xfc], 0
mov dword [ebp + edx - 0x2c], ecx
mov dword [ebx], edi
jne 0x4549f0
cmp edi, dword [ebp - 0xc4]
jge 0x4549ee
mov eax, dword [ebp - 0xb8]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x4549e6
lea esi, [ebp - 0xc4]
call fcn.00417820
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4549f0
xor eax, eax
mov ecx, dword [ebp - 0xdc]
sub dword [ebp + ecx - 0x28], eax
mov edx, dword [ebp - 0xdc]
lea ecx, [ebp + ecx - 0x28]
cmp edi, dword [ebp - 0xc4]
jl 0x454972
mov ebx, dword [ebx]
cmp ebx, dword [ebp - 0xc4]
jl 0x454a28
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xec], eax
jmp 0x454a4c
cmp dword [ebp - 0xcc], 0
jle 0x454a3c
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + edx]
jmp 0x454a3e
xor eax, eax
cmp ebx, eax
jle 0x454bd2
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xcc]
inc ecx
add edx, 4
inc eax
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xc8], eax
cmp ecx, dword [ebp - 0xec]
jl 0x4547e0
mov eax, dword [ebp - 0xec]
dec eax
mov dword [ebp - 0xcc], eax
test eax, eax
jle 0x454c01
lea ebx, [ebx]
mov edx, dword [ebp + eax*4 - 0x30]
mov ecx, dword [ebp + eax*4 - 0x2c]
mov dword [ebp - 0xc8], edx
lea edx, [ebp - 0x40]
mov ebx, dword [edx + eax*4 - 4]
sub edx, 4
dec ebx
mov edi, ebx
sub edi, dword [ebp - 0xfc]
mov dword [ebp - 0xe4], edx
mov edx, dword [ebp - 0xb8]
inc edi
cmp word [edx + edi*2], 0
lea edx, [edx + edi*2]
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd4], edx
jne 0x454af1
lea esi, [ebp - 0xc4]
call fcn.00417820
mov edx, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], edx
jmp 0x454b00
mov esi, dword [ebp - 0xb8]
cmp word [esi + ebx*2], 0
jne 0x454b2c
mov edi, ebx
lea esi, [ebp - 0xc4]
call fcn.00417820
mov edx, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xcc]
test ecx, ecx
je 0x454b67
cmp dword [ebp + 0x10], 0
jne 0x454ba4
mov esi, dword [ebp - 0xec]
dec esi
mov edi, eax
sub edi, esi
mov esi, dword [ebp - 0xc8]
neg edi
sbb edi, edi
and edi, 2
sub esi, edi
mov edi, dword [ebp - 0xb8]
movzx edi, word [edi + ebx*2]
sub esi, edi
movzx edi, word [edx]
lea edi, [edi + ecx + 2]
cmp edi, esi
jg 0x454ba4
movzx esi, word [edx]
lea ecx, [ecx + esi + 2]
mov esi, dword [ebp - 0xb8]
movzx esi, word [esi + ebx*2]
mov edi, 0xfffffffe
sub edi, esi
mov esi, dword [ebp - 0xe4]
add dword [ebp - 0xc8], edi
sub edx, 2
mov dword [esi + eax*4], ebx
dec ebx
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd4], edx
jns 0x454b00
mov dword [ebp + eax*4 - 0x2c], ecx
mov ecx, dword [ebp - 0xc8]
mov dword [ebp + eax*4 - 0x30], ecx
cmp eax, 1
jle 0x454be1
mov edx, dword [ebp - 0xe4]
mov ecx, dword [edx + eax*4 - 4]
jmp 0x454be3
push 0x4e5fc4
push 0x11612
jmp 0x4547ff
push 0x4e5fc4
push 0x11633
jmp 0x4547ff
xor ecx, ecx
mov edx, dword [ebp - 0xe4]
cmp dword [edx + eax*4], ecx
jle 0x454c9c
dec eax
mov dword [ebp - 0xcc], eax
test eax, eax
jg 0x454a90
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 0x38]
movzx edx, byte [ecx]
xor ebx, ebx
mov dword [ebp - 0xc8], edx
cmp dword [ebp - 0xec], ebx
jle 0x454dbb
mov edi, dword [ebp - 0xc4]
jmp 0x454c30
cmp ebx, dword [ebp - 0xf4]
jge 0x454d0b
mov eax, dword [ebp + ebx*4 - 0x114]
mov esi, dword [eax + 0x48]
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
mov dword [ebp + ebx*4 - 0x130], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp + ebx*4 - 0x114], 0
je 0x454cc0
mov eax, dword [ecx + 0x18]
cmp eax, dword [esi + 0x18]
jb 0x454cc0
cmp dword [ecx + 0x60], 0
je 0x454cab
mov ecx, esi
call fcn.00415740
test eax, eax
je 0x454cab
push esi
call fcn.00433be0
inc dword [ebp - 0xe0]
add esp, 4
mov dword [ebp - 0xd0], eax
test eax, eax
jmp 0x454da8
push 0x4e5fc4
push 0x1165d
jmp 0x4547ff
inc dword [ebp - 0xe0]
xor eax, eax
mov dword [ebp - 0xd0], eax
test eax, eax
jmp 0x454da8
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x454cf8
mov edx, dword [ecx + 0x94]
cmp edx, dword [ecx + 0x98]
jbe 0x454cf1
push esi
call fcn.00433e30
inc dword [ebp - 0xe0]
add esp, 4
mov dword [ebp - 0xd0], eax
test eax, eax
jmp 0x454da8
mov eax, esi
call fcn.00433d90
inc dword [ebp - 0xe0]
mov dword [ebp - 0xd0], eax
test eax, eax
jmp 0x454da8
cmp dword [ebp + 0x10], 0
mov eax, 1
jne 0x454d1c
mov eax, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xe8]
push 0
push eax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xd4]
push ecx
push edx
call fcn.00452430
add esp, 0x14
mov dword [ebp - 0xd0], eax
test eax, eax
jne 0x45481d
mov eax, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xd4]
push eax
call fcn.00451420
mov ecx, dword [ebp - 0xe8]
inc dword [ebp - 0xe0]
add esp, 4
cmp byte [ecx + 0x11], 0
mov dword [ebp + ebx*4 - 0x130], esi
mov dword [ebp + ebx*4 - 0x6c], edi
je 0x454dae
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 4]
mov eax, dword [esi + 4]
lea edx, [ebp - 0xd0]
push edx
mov edx, dword [ebp - 0xe8]
push ecx
push 5
push edx
call fcn.00450410
add esp, 0x10
cmp dword [ebp - 0xd0], 0
jne 0x45481d
inc ebx
cmp ebx, dword [ebp - 0xec]
jl 0x454c30
mov esi, dword [ebp - 0xe0]
xor eax, eax
test esi, esi
jle 0x454e08
jmp 0x454dd0
mov ecx, dword [ebp + eax*4 - 0x130]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x48]
mov cx, word [ecx + 0x1c]
mov word [ebp + eax*2 - 0x10], cx
xor ecx, ecx
mov dword [ebp + eax*4 - 0x80], edx
mov dword [ebp + eax*4 - 0x54], edx
test eax, eax
jle 0x454e03
cmp dword [ebp + ecx*4 - 0x80], edx
je 0x454fb0
inc ecx
cmp ecx, eax
jl 0x454df4
inc eax
cmp eax, esi
jl 0x454dd0
xor ecx, ecx
mov dword [ebp - 0xcc], ecx
test esi, esi
jle 0x454edd
xor ebx, ebx
lea eax, [ebx + 1]
cmp esi, eax
jle 0x454e50
xor edx, edx
jmp 0x454e30
lea ecx, [eax*4]
mov edi, dword [ebp + ecx - 0x54]
cmp edi, dword [ebp + edx - 0x54]
jae 0x454e45
mov ebx, eax
mov edx, ecx
inc eax
cmp eax, esi
jl 0x454e30
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ebp + ebx*4 - 0x54]
mov dword [ebp - 0xd8], edx
mov dword [ebp + ebx*4 - 0x54], 0xffffffff
cmp ebx, ecx
je 0x454ece
jle 0x454e8a
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp + ebx*4 - 0x130]
mov esi, dword [edx + 0x48]
xor eax, eax
lea edi, [ecx + ebx + 1]
mov word [esi + 0x1c], ax
call fcn.00414900
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ebp + ecx*4 - 0x130]
mov eax, dword [eax + 0x48]
mov dx, word [ebp + ebx*2 - 0x10]
mov edi, dword [ebp - 0xd8]
mov esi, eax
mov word [eax + 0x1c], dx
call fcn.00414900
mov eax, dword [ebp - 0xcc]
mov eax, dword [ebp + eax*4 - 0x130]
mov esi, dword [ebp - 0xe0]
mov ecx, edi
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xcc]
inc ecx
mov dword [ebp - 0xcc], ecx
cmp ecx, esi
jl 0x454e18
test byte [ebp - 0xc8], 8
mov eax, dword [ebp + esi*4 - 0x134]
mov edx, dword [eax + 4]
mov ecx, dword [ebp - 0xf0]
bswap edx
mov dword [ecx], edx
jne 0x454f22
mov edx, dword [ebp - 0xf4]
cmp esi, edx
je 0x454f22
lea ecx, [ebp - 0x130]
jg 0x454f12
lea ecx, [ebp - 0x114]
mov edx, dword [ecx + edx*4 - 4]
mov ecx, dword [edx + 0x38]
mov edx, dword [eax + 0x38]
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xe8]
cmp byte [ecx + 0x11], 0
je 0x455129
mov ebx, dword [ebp - 0x130]
movzx eax, word [ebx + 0x18]
movzx edx, byte [ebx + 0xc]
xor edi, edi
add eax, edx
mov esi, ebx
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xd8], edi
cmp dword [ebp - 0xc4], edi
jle 0x455129
mov dword [ebp - 0xd4], edi
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + edi*4]
mov dword [ebp - 0xe4], ecx
cmp edi, dword [ebp - 0xc8]
jne 0x454fea
xor eax, eax
cmp dword [ebp - 0xfc], eax
sete al
mov ecx, dword [ebp - 0xd8]
inc ecx
mov dword [ebp - 0xd8], ecx
cmp ecx, dword [ebp - 0xe0]
jge 0x454fbf
mov ebx, dword [ebp + ecx*4 - 0x130]
jmp 0x454fc6
push 0x4e5fc4
push 0x116a7
jmp 0x4547ff
mov ebx, dword [ebp + ecx*4 - 0x114]
movzx ecx, word [ebx + 0x18]
movzx edx, byte [ebx + 0xc]
add ecx, eax
add edx, ecx
mov ecx, dword [ebp - 0xc8]
add ecx, edx
mov dword [ebp - 0xc8], ecx
cmp edi, ecx
je 0x454f92
mov ecx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xd4]
cmp edi, dword [ebp + eax - 0x40]
jne 0x455027
mov eax, dword [ebp - 0xf0]
inc eax
mov dword [ebp - 0xf0], eax
add eax, eax
add eax, eax
cmp dword [ebp - 0xfc], 0
mov esi, dword [ebp + eax - 0x130]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xdc], esi
je 0x45511c
mov eax, dword [ebp - 0xd8]
cmp eax, dword [ebp - 0xe0]
jge 0x45504c
mov edx, dword [esi + 4]
cmp edx, dword [ebp + eax*4 - 0x80]
jne 0x45504c
cmp ecx, dword [ebx + 0x38]
jb 0x45504c
cmp ecx, dword [ebx + 0x3c]
jb 0x45511c
cmp word [ebp - 0x108], 0
jne 0x45507c
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0xe4]
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [edx]
push ecx
mov ecx, dword [ebp - 0xe8]
push 5
bswap eax
push ecx
call fcn.00450410
add esp, 0x10
mov edx, dword [ebp - 0xb8]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x45509f
lea esi, [ebp - 0xc4]
call fcn.00417820
mov esi, dword [ebp - 0xdc]
movzx eax, ax
cmp ax, word [esi + 0x10]
jbe 0x45510f
cmp dword [ebp - 0xd0], 0
jne 0x45481d
mov ecx, dword [ebp - 0xe4]
mov edx, dword [esi + 0x50]
lea eax, [ebp - 0x58]
push eax
push ecx
push esi
call edx
movzx ecx, word [ebp - 0x48]
add esp, 0xc
cmp ecx, dword [ebp - 0x4c]
jae 0x45511c
mov eax, dword [ebx + 0x3c]
mov edx, dword [ebp - 0xe4]
cmp eax, edx
jb 0x4550e6
add ecx, edx
cmp eax, ecx
jb 0x45519b
mov ecx, dword [esi + 4]
movzx edx, word [ebp - 0x46]
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [ebp - 0xe4]
mov eax, dword [edx + eax - 4]
push ecx
mov ecx, dword [esi + 0x34]
push 3
bswap eax
push ecx
call fcn.00450410
add esp, 0x10
cmp dword [ebp - 0xd0], 0
jne 0x45481d
inc edi
cmp edi, dword [ebp - 0xc4]
jl 0x454f70
mov eax, dword [ebp - 0xe0]
xor ebx, ebx
dec eax
mov dword [ebp - 0xcc], ebx
test eax, eax
jle 0x4552df
mov ecx, dword [ebp + ebx*4 - 0x40]
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + ecx*4]
mov edx, dword [ebp - 0xb8]
mov esi, dword [ebp - 0x11c]
mov edi, dword [ebp + ebx*4 - 0x130]
add esi, dword [ebp - 0x118]
mov dword [ebp - 0xd8], eax
movzx eax, word [edx + ecx*2]
movzx edx, word [ebp - 0x108]
mov dword [ebp - 0xf0], eax
movzx eax, ax
add eax, edx
cmp byte [edi + 8], 0
jne 0x4551aa
mov edx, dword [ebp - 0xd8]
mov ecx, dword [edi + 0x38]
mov edx, dword [edx]
mov dword [ecx + 8], edx
jmp 0x455284
push 0x4e5fc4
push 0xfd11
jmp 0x4547ff
cmp dword [ebp - 0xfc], 0
je 0x455257
mov edx, dword [ebp - 0xbc]
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edx + ecx*4 - 4]
mov ecx, dword [edi + 0x50]
push eax
push edi
call ecx
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x84]
add esp, 0xc
mov dword [ebp - 0xd8], esi
mov ebx, edx
mov dword [ebp - 0xc], eax
lea ecx, [esi + 4]
test eax, eax
ja 0x455240
jb 0x4551f4
cmp edx, 0x7f
ja 0x45520e
mov ebx, dword [ebp - 0xcc]
and dl, 0x7f
mov eax, 1
add eax, 4
mov byte [ecx], dl
xor esi, esi
jmp 0x455284
test eax, eax
ja 0x455240
jb 0x45521c
cmp edx, 0x3fff
ja 0x455240
shrd edx, eax, 7
shr eax, 7
and bl, 0x7f
or dl, 0x80
mov eax, 2
mov byte [ecx + 1], bl
mov ebx, dword [ebp - 0xcc]
add eax, 4
mov byte [ecx], dl
xor esi, esi
jmp 0x455284
push eax
push edx
call fcn.00412d10
mov ebx, dword [ebp - 0xcc]
add esp, 8
add eax, 4
xor esi, esi
jmp 0x455284
mov ecx, 4
sub dword [ebp - 0xd8], ecx
cmp word [ebp - 0xf0], cx
jne 0x455284
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x104]
push edx
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx eax, ax
mov edx, dword [edi + 4]
add dword [ebp - 0x11c], eax
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, dword [ebp - 0x100]
push edx
push eax
mov eax, dword [ebp - 0xd8]
push eax
add ecx, ebx
push ecx
mov ecx, dword [ebp - 0x104]
mov eax, esi
call fcn.004532a0
add esp, 0x14
cmp dword [ebp - 0xd0], 0
jne 0x45481d
mov ebx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xe0]
inc ebx
dec eax
mov dword [ebp - 0xcc], ebx
cmp ebx, eax
jl 0x455140
mov eax, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0x130]
mov ecx, 1
sub ecx, eax
mov dword [ebp - 0xcc], ecx
cmp ecx, eax
jge 0x4553c4
mov edi, dword [ebp - 0xfc]
mov eax, ecx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp byte [ebp + esi - 0x18], 0
jne 0x4553b1
test ecx, ecx
jns 0x45532c
mov edx, dword [ebp + esi*4 - 0x70]
cmp edx, dword [ebp + esi*4 - 0x44]
jl 0x4553b1
test esi, esi
jne 0x455339
mov eax, dword [ebp - 0x40]
xor edx, edx
xor ecx, ecx
jmp 0x455365
cmp esi, dword [ebp - 0xf4]
jge 0x45534e
xor edx, edx
test edi, edi
sete dl
add edx, dword [ebp + esi*4 - 0x70]
jmp 0x455354
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp + esi*4 - 0x40]
xor ecx, ecx
test edi, edi
sete cl
add ecx, dword [ebp + esi*4 - 0x44]
sub eax, ecx
mov edi, dword [ebp + esi*4 - 0x130]
lea ebx, [ebp - 0xc4]
push ebx
push eax
push ecx
push edx
push edi
call fcn.00453b20
add esp, 0x14
mov dword [ebp - 0xd0], eax
test eax, eax
jne 0x45481d
mov eax, dword [ebp - 0xf8]
sub eax, dword [ebp + esi*4 - 0x2c]
mov ecx, dword [ebp - 0xcc]
mov ebx, dword [ebp - 0x130]
mov dword [edi + 0x14], eax
mov edi, dword [ebp - 0xfc]
mov byte [ebp + esi - 0x18], 1
inc ecx
mov dword [ebp - 0xcc], ecx
cmp ecx, dword [ebp - 0xe0]
jl 0x455306
cmp dword [ebp + 0xc], 0
je 0x455427
mov esi, dword [ebp - 0x104]
cmp word [esi + 0x18], 0
jne 0x455427
movzx ecx, byte [esi + 9]
cmp ecx, dword [ebx + 0x14]
jg 0x455427
push 0xffffffffffffffff
push ebx
call fcn.004506c0
lea edx, [ebp - 0xd0]
push edx
mov dword [ebp - 0xd0], eax
push esi
mov eax, ebx
call fcn.00453fb0
add esp, 0x10
cmp dword [ebp - 0xd0], 0
jne 0x45547a
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x34]
push eax
push ecx
mov eax, ebx
call fcn.00452a00
add esp, 8
mov dword [ebp - 0xd0], eax
jmp 0x45547a
mov edi, dword [ebp - 0xe8]
cmp byte [edi + 0x11], 0
je 0x45547a
cmp word [ebp - 0x108], 0
jne 0x45547a
xor esi, esi
cmp dword [ebp - 0xe0], esi
jle 0x45547a
mov ebx, dword [ebp - 0xe0]
lea ecx, [ecx]
mov eax, dword [ebp + esi*4 - 0x130]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0xd0]
push edx
mov edx, dword [eax + 0x38]
mov eax, dword [edx + 8]
push ecx
push 5
bswap eax
push edi
call fcn.00450410
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x455450
mov esi, dword [ebp - 0xe0]
mov edi, dword [ebp - 0xf4]
cmp esi, edi
jge 0x45481d
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp + esi*4 - 0x114]
test eax, eax
jne 0x4554b1
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x34]
push eax
push edx
mov eax, ecx
call fcn.00452a00
add esp, 8
inc esi
cmp esi, edi
jl 0x455494
mov dword [ebp - 0xd0], eax
jmp 0x45481d
push 0x4e5fc4
push 0x11552
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043f0f0
lea eax, [ebx*4 + 4]
push eax
lea ecx, [ebp - 0x114]
push 0
push ecx
mov dword [ebp - 0xd0], 0xb
call fcn.004b3f30
add esp, 0x20
jmp 0x45550b
push esi
call dword [0x4fa084]
add esp, 4
xor edi, edi
cmp dword [ebp - 0xf4], edi
jle 0x45558e
lea esp, [esp]
mov eax, dword [ebp + edi*4 - 0x114]
test eax, eax
je 0x455585
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x455580
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [esi]
dec eax
push edx
mov dword [ebp - 0xf0], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp - 0xf0]
push 0
push eax
call fcn.004b5250
push edx
push eax
mov eax, dword [ebx + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x455585
call fcn.00414640
inc edi
cmp edi, dword [ebp - 0xf4]
jl 0x455520
xor edi, edi
cmp dword [ebp - 0xe0], edi
jle 0x45560e
lea esp, [esp]
mov eax, dword [ebp + edi*4 - 0x130]
test eax, eax
je 0x455605
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x455600
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [esi]
dec eax
push edx
mov dword [ebp - 0xf0], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp - 0xf0]
push 0
push eax
call fcn.004b5250
push edx
push eax
mov eax, dword [ebx + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x455605
call fcn.00414640
inc edi
cmp edi, dword [ebp - 0xe0]
jl 0x4555a0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xd0]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004b3f21
mov esp, ebp
pop ebp
ret