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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x725fec]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov eax, ecx
mov dword [esp + 0x20], 0
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x3c], eax
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x11c], 0
mov byte [esp + 0x120], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x34], ecx
push edi
test esi, esi
jne 0x4979fa
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0063db0b
mov esp, ebp
pop ebp
ret
movzx edi, word [eax + 0x12]
movzx ecx, byte [eax + 1]
lea esi, [ecx + edi]
cmp esi, 2
jae 0x497a0e
xor edx, edx
jmp 0x497a2b
test edx, edx
je 0x497a21
cmp edx, esi
jne 0x497a20
mov eax, dword [ebp + 0x10]
lea edx, [eax - 2]
add edx, esi
jmp 0x497a24
dec edx
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x58], eax
mov eax, edx
sub eax, ecx
mov dword [esp + 0x68], esi
lea ecx, [eax + esi]
cmp ecx, edi
jne 0x497a57
mov eax, dword [esp + 0x40]
movzx ecx, byte [eax + 6]
mov eax, dword [eax + 0x38]
add ecx, 8
add ecx, eax
jmp 0x497a72
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x14]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov edi, dword [ecx]
lea eax, [esi*4]
bswap edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x10], eax
nop dword [eax]
mov eax, dword [esp + 0x38]
cmp edi, dword [eax + 0x2c]
jbe 0x497b56
push 0x6f29f0
push 0xdc9f
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00482f10
mov eax, 0xb
add esp, 0x10
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x498d71
mov eax, dword [esp + edi + 0x90]
sub edi, 4
mov dword [esp + 0x10], edi
movzx ecx, word [eax + 0x12]
movzx eax, byte [eax + 1]
inc eax
add eax, dword [esp + 0x28]
add ecx, eax
mov eax, esi
dec esi
mov dword [esp + 0x28], ecx
test eax, eax
je 0x497d32
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x6c]
add eax, esi
movzx ecx, word [edx + 0x16]
cmp eax, ecx
jne 0x497c13
cmp byte [edx + 1], 0
je 0x497c13
mov eax, dword [edx + 0x20]
push eax
mov dword [esp + edi + 0x12c], eax
push edx
mov ecx, dword [eax]
mov eax, dword [edx + 0x4c]
bswap ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], ecx
call eax
mov ecx, dword [esp + 0x48]
add esp, 8
movzx eax, ax
mov dword [esp + edi + 0xb0], eax
mov edi, dword [esp + 0x44]
mov byte [ecx + 1], 0
jmp 0x497a90
lea ecx, [esp + 0x2c]
mov edx, edi
push 0
push ecx
mov ecx, dword [eax]
call fcn.0048d1e0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x497abf
mov ecx, dword [esp + 0x2c]
cmp edi, 1
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 4]
mov dword [edx + 0x38], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 0x34], eax
setne al
mov dword [edx + 0x54], edi
dec al
mov edi, dword [esp + 0x10]
and al, 0x64
mov dword [edx + 0x48], ecx
mov byte [edx + 6], al
mov dword [esp + edi + 0x90], edx
cmp byte [edx], 0
jne 0x497c08
mov ecx, edx
call fcn.00491ef0
mov dword [esp + 0x18], eax
test eax, eax
je 0x497c08
mov ecx, dword [esp + edi + 0x90]
test ecx, ecx
je 0x497ac3
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x18], 0x40
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x34], eax
je 0x497bf1
call fcn.0048bf80
mov ecx, dword [esp + 0x34]
call fcn.0048d1b0
mov eax, dword [esp + 0x18]
jmp 0x497ac3
call fcn.00488760
mov ecx, dword [esp + 0x34]
call fcn.0048d1b0
mov eax, dword [esp + 0x18]
jmp 0x497ac3
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x497ac3
movzx eax, byte [edx + 1]
mov ecx, dword [esp + 0x6c]
sub ecx, eax
mov eax, dword [edx + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x14]
movzx ecx, cx
and ecx, eax
mov eax, dword [edx + 0x38]
add eax, ecx
lea ecx, [esp + 0x128]
add ecx, edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x34], ecx
push eax
push edx
mov dword [ecx], eax
mov ecx, dword [eax]
mov eax, dword [edx + 0x4c]
bswap ecx
mov dword [esp + 0x4c], ecx
mov edi, ecx
mov dword [esp + 0x44], ecx
call eax
movzx ecx, ax
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + eax + 0xb0], ecx
mov eax, dword [esp + 0x38]
test byte [eax + 0x16], 4
je 0x497cd3
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x60]
mov ecx, edx
mov ebx, dword [esp + 0x38]
sub ecx, dword [eax + 0x38]
mov eax, dword [esp + 0x1c]
add eax, ecx
cmp eax, dword [ebx + 0x24]
mov ebx, 0
jg 0x497cf6
push dword [esp + 0x1c]
mov eax, dword [esp + 0x84]
push edx
add eax, ecx
push eax
call fcn.006435e0
mov ecx, dword [esp + 0x4c]
add esp, 0xc
mov eax, dword [esp + 0x80]
sub eax, dword [ecx + 0x38]
mov ecx, dword [esp + 0x34]
add eax, dword [esp + 0x60]
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x48]
movzx eax, byte [ecx + 1]
sub edx, eax
add edx, esi
call fcn.00496d50
add esp, 8
jmp 0x497a90
push 0x6f29f0
push 0xf084
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00482f10
mov eax, dword [esp + 0x20]
mov ebx, 0xb
add eax, 4
push eax
lea eax, [esp + 0xa4]
push 0
push eax
call fcn.006440e0
add esp, 0x1c
xor eax, eax
jmp 0x498d42
mov eax, dword [esp + 0x38]
lea esi, [ecx + 3]
and esi, 0xfffffffc
mov ecx, dword [eax + 0x20]
lea edi, [esi + esi*2]
add edi, edi
add ecx, edi
call fcn.00480b00
mov dword [esp + 0x10], eax
mov dword [esp + 0x50], eax
test eax, eax
jne 0x497d5f
lea ebx, [eax + 7]
jmp 0x498d42
mov ecx, dword [esp + 0x90]
lea eax, [eax + esi*4]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
add eax, edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], eax
movzx eax, byte [ecx + 5]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x60], eax
mov al, byte [ecx + 3]
mov byte [esp + 0x17], al
movzx eax, al
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x58], eax
jle 0x497fd6
nop dword [eax + eax]
shl eax, 2
mov dword [esp + 0x7c], eax
mov edi, dword [esp + eax + 0x90]
mov dword [esp + 0x34], edi
movzx eax, word [edi + 0x14]
mov edx, dword [edi + 0x38]
mov ecx, eax
movzx esi, word [edi + 0xe]
mov dword [esp + 0x8c], eax
add esi, edx
mov eax, dword [esp + 0x90]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x4980ce
movzx eax, word [edi + 0x12]
mov dword [esp + 0x84], eax
add eax, eax
push eax
mov eax, dword [esp + 0x58]
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.006440e0
mov al, byte [edi + 1]
add esp, 0xc
test al, al
je 0x497ebe
mov ecx, dword [esp + 0x54]
movzx eax, al
add eax, eax
push eax
mov eax, dword [esp + 0x88]
add eax, ebx
push 0
lea eax, [ecx + eax*2]
push eax
call fcn.006440e0
movzx edx, word [edi + 0x16]
add esp, 0xc
test edx, edx
je 0x497e8b
mov edi, dword [esp + 0x1c]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x88]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x10]
add ecx, edi
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [esp + 0x48], ebx
sub edx, 1
jne 0x497e53
mov edi, dword [esp + 0x34]
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ebx
xor edx, edx
cmp byte [edi + 1], dl
jbe 0x497ebe
mov esi, dword [esp + 0x10]
lea ecx, [edi + 0x20]
nop dword [eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ebx*4], eax
inc edx
movzx eax, byte [edi + 1]
inc ebx
mov dword [esp + 0x48], ebx
cmp edx, eax
jl 0x497ea0
mov esi, dword [esp + 0x28]
mov dword [esp + 0x20], ebx
movzx eax, word [edi + 0xe]
xor edx, edx
movzx ecx, word [edi + 0x12]
add eax, dword [esp + 0x1c]
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 0x497f13
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
mov eax, dword [esp + 0x8c]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x10]
add ecx, dword [esp + 0x1c]
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [esp + 0x48], ebx
cmp edx, edi
jb 0x497ee1
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x5c]
mov dword [esp + edx + 0xf4], ebx
cmp eax, dword [esp + 0x68]
jge 0x497fc7
cmp byte [esp + 0x17], 0
jne 0x497fc7
movzx eax, word [esp + edx + 0xb0]
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x2c]
push eax
push dword [esp + edx + 0x12c]
add esi, edi
mov word [ecx + ebx*2], ax
add edi, eax
push esi
mov dword [esp + 0x70], edi
call fcn.006435e0
mov eax, dword [esp + 0x6c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x54]
movzx eax, ax
add eax, esi
mov dword [ecx + ebx*4], eax
mov eax, dword [esp + 0x60]
sub word [edx + ebx*2], ax
mov eax, dword [esp + 0x34]
cmp byte [eax + 5], 0
jne 0x497f9b
mov eax, dword [eax + 0x38]
mov ecx, dword [ecx + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x497fba
cmp word [edx + ebx*2], 4
jae 0x497fba
mov eax, dword [esp + 0x2c]
mov byte [eax + edi], 0
inc edi
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x497fa6
mov dword [esp + 0x64], edi
mov eax, dword [esp + 0x5c]
inc ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x48], ebx
inc eax
mov dword [esp + 0x5c], eax
cmp eax, dword [esp + 0x58]
jl 0x497db0
mov eax, dword [esp + 0x60]
xor ecx, ecx
movzx edx, ax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
mov eax, dword [eax + 0x24]
add eax, 0xfffffff4
add edx, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x64], edx
test eax, eax
jle 0x49808e
nop
mov esi, dword [esp + ecx*4 + 0x90]
mov edi, edx
movzx eax, word [esi + 0x10]
sub edi, eax
lea eax, [esp + 0xb0]
lea eax, [eax + ecx*4]
mov dword [eax], edi
mov dword [esp + 0x68], eax
js 0x4980f1
cmp byte [esi + 1], 0
mov dword [esp + 0x2c], 0
jbe 0x49806f
lea ebx, [esi + 0x20]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x34]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [esp + 0x34], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 1]
cmp ecx, eax
jl 0x498036
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x64]
mov dword [eax], edi
mov eax, dword [esp + ecx*4 + 0xf4]
mov dword [esp + ecx*4 + 0xc4], eax
inc ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x34], ecx
cmp ecx, eax
jl 0x498000
mov dword [esp + 0x28], 0
mov esi, eax
mov dword [esp + 0x5c], esi
test eax, eax
jle 0x4982b7
mov edx, 1
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0xb0]
add eax, ecx
mov dword [esp + 0x68], eax
mov edi, dword [eax]
cmp edi, dword [esp + 0x64]
jle 0x4981e2
jmp 0x49811d
push 0x6f29f0
push 0xf0c7
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00482f10
add esp, 0x10
mov ebx, 0xb
jmp 0x498d3e
push 0x6f29f0
push 0xf12a
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00482f10
add esp, 0x10
mov ebx, 0xb
jmp 0x498d3e
lea eax, [esp + 0xb0]
add eax, ecx
cmp edx, esi
jl 0x498143
inc edx
mov dword [esp + 0x5c], edx
cmp edx, 5
jg 0x498417
mov dword [esp + ecx + 0xb4], 0
mov edi, dword [eax]
mov dword [esp + ecx + 0xc8], ebx
mov esi, dword [esp + ecx + 0xc4]
mov edx, dword [esp + 0x54]
lea ecx, [esi - 1]
mov dword [esp + 0x7c], ecx
movzx eax, word [edx + ecx*2]
test ax, ax
jne 0x498178
mov edx, ecx
lea ecx, [esp + 0x48]
call fcn.004970d0
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
movzx eax, ax
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x68]
movzx eax, ax
add eax, 2
sub edi, eax
cmp byte [esp + 0x17], 0
mov dword [ecx], edi
jne 0x4981ba
cmp esi, ebx
jge 0x4981b8
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4981b0
mov edx, esi
lea ecx, [esp + 0x48]
call fcn.004970d0
mov ebx, dword [esp + 0x48]
movzx eax, ax
mov dword [esp + 0x20], ebx
movzx eax, ax
add eax, 2
jmp 0x4981ba
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x5c]
add dword [esp + ecx + 0xb4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + ecx + 0xc4], eax
cmp edi, dword [esp + 0x64]
jg 0x498114
mov esi, dword [esp + ecx + 0xc4]
cmp esi, ebx
jge 0x49828c
mov edx, dword [esp + 0x54]
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x49821c
mov edx, esi
lea ecx, [esp + 0x48]
call fcn.004970d0
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x54]
movzx eax, ax
mov dword [esp + 0x20], ebx
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, dword [esp + 0x64]
jg 0x4983ec
inc esi
mov dword [esp + ecx + 0xb0], edi
cmp byte [esp + 0x17], 0
mov dword [esp + ecx + 0xc4], esi
jne 0x498279
cmp esi, ebx
jge 0x498277
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x49826b
mov edx, esi
lea ecx, [esp + 0x48]
call fcn.004970d0
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
movzx eax, ax
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x1c]
movzx eax, ax
add eax, 2
jmp 0x498279
xor eax, eax
sub dword [esp + ecx + 0xb4], eax
cmp esi, ebx
jl 0x4981f5
mov edx, dword [esp + 0x10]
mov esi, edx
mov dword [esp + 0x5c], esi
mov eax, dword [esp + 0x28]
add ecx, 4
inc eax
mov dword [esp + 0x1c], ecx
inc edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edx
cmp eax, esi
jl 0x4980b3
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], edx
lea ecx, [esi - 1]
mov dword [esp + 0x34], ecx
test ecx, ecx
jle 0x4984bc
nop word [eax + eax]
shl ecx, 2
lea eax, [esp + 0xb0]
add eax, ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x88], eax
mov edi, dword [eax]
lea eax, [esp + ecx + 0xac]
mov dword [esp + 0x84], eax
mov eax, dword [eax]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc4]
sub eax, 4
mov dword [esp + 0x2c], eax
mov ebx, dword [eax + ecx]
mov ecx, dword [esp + 0x54]
lea esi, [ebx - 1]
mov edx, esi
sub edx, dword [esp + 0x74]
inc edx
lea eax, [edx + edx]
cmp word [eax + ecx], 0
mov dword [esp + 0x28], eax
jne 0x498344
lea ecx, [esp + 0x48]
call fcn.004970d0
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [esp + 0x54]
cmp word [ecx + esi*2], 0
mov dword [esp + 0x8c], esi
mov dword [esp + 0x7c], esi
jne 0x498365
mov edx, esi
lea ecx, [esp + 0x48]
call fcn.004970d0
mov ecx, dword [esp + 0x54]
test edi, edi
je 0x49839b
cmp dword [ebp + 0x10], 0
mov edx, ebx
jne 0x498465
movzx eax, word [ecx + esi*2]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x54]
sub ecx, eax
mov eax, dword [esp + 0x28]
sub ecx, 2
movzx eax, word [eax + ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x498465
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x2c]
movzx eax, word [edx + ecx]
sub edx, 2
add eax, 2
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x8c]
add edi, eax
movzx eax, word [ecx + esi*2]
mov ecx, 0xfffffffe
sub ecx, eax
mov eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x20], eax
mov dword [ebx + ecx], esi
sub esi, 1
mov ebx, dword [esp + 0x7c]
jns 0x498340
jmp 0x498469
cmp esi, ebx
jge 0x498288
cmp dword [esp + 0x28], 0
jle 0x498404
mov eax, dword [esp + ecx + 0xc0]
jmp 0x498406
xor eax, eax
cmp esi, eax
jle 0x49843e
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x5c]
jmp 0x498292
push 0x6f29f0
push 0xf136
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00482f10
add esp, 0x10
mov ebx, 0xb
mov eax, dword [esp + 0x50]
jmp 0x498d42
push 0x6f29f0
push 0xf157
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00482f10
mov eax, dword [esp + 0x60]
add esp, 0x10
mov ebx, 0xb
jmp 0x498d42
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [ecx], edi
mov ecx, dword [esp + 0x84]
mov dword [ecx], eax
mov ecx, dword [esp + 0x34]
cmp ecx, 1
jle 0x498495
mov ebx, dword [esp + 0x2c]
lea eax, [ecx*4]
mov eax, dword [ebx + eax - 4]
jmp 0x498497
xor eax, eax
cmp edx, eax
jle 0x498528
dec ecx
mov dword [esp + 0x34], ecx
test ecx, ecx
jg 0x4982d0
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x90]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x34], eax
lea eax, [esi + 1]
cmp dword [esp + 0x5c], esi
jle 0x49862f
nop dword [eax]
cmp esi, dword [esp + 0x58]
jge 0x49858e
mov eax, dword [esp + esi*4 + 0x90]
mov dword [esp + esi*4 + 0x9c], eax
mov dword [esp + esi*4 + 0x90], 0
mov dword [esp + 0x2c], eax
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x18], 4
mov edx, dword [ecx + 0x10]
je 0x498553
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x14]
jb 0x498553
cmp dword [edx + 0x60], 0
je 0x49854f
call fcn.0048c4d0
jmp 0x49856d
push 0x6f29f0
push 0xf181
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00482f10
mov eax, dword [esp + 0x60]
add esp, 0x10
mov ebx, 0xb
jmp 0x498d42
xor edi, edi
jmp 0x49856f
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x498568
call fcn.0048db70
jmp 0x49856d
call fcn.0048d970
mov edi, eax
inc dword [esp + 0x30]
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
test edi, edi
je 0x49861f
mov eax, dword [esp + 0x10]
mov ebx, edi
jmp 0x498d42
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x2c]
mov ecx, dword [esp + 0x44]
cmovne ecx, eax
lea eax, [esp + 0x3c]
push 0
push ecx
mov ecx, dword [esp + 0x40]
push eax
call fcn.00495d60
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
test edi, edi
jne 0x498d3a
mov edi, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [esp + 0x34]
call fcn.004921f0
mov ecx, dword [esp + 0x38]
inc dword [esp + 0x30]
mov dword [esp + esi*4 + 0x9c], edi
mov dword [esp + esi*4 + 0xf4], ebx
cmp byte [ecx + 0x11], 0
je 0x498617
mov edx, dword [edi + 0x54]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x44]
push dword [eax + 0x54]
push 5
call fcn.004912c0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jne 0x498d3a
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x44], edi
inc esi
mov eax, 1
cmp esi, dword [esp + 0x5c]
jl 0x4984e0
mov esi, dword [esp + 0x30]
xor ecx, ecx
test esi, esi
jle 0x498786
nop dword [eax]
mov eax, dword [esp + ecx*4 + 0x9c]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0x108], edx
mov dword [esp + ecx*4 + 0xd8], edx
mov ax, word [eax + 0x18]
mov word [esp + ecx*2 + 0x128], ax
xor eax, eax
test ecx, ecx
jle 0x498682
nop dword [eax]
cmp dword [esp + eax*4 + 0x108], edx
je 0x498849
inc eax
cmp eax, ecx
jl 0x498670
inc ecx
cmp ecx, esi
jl 0x498640
test esi, esi
jle 0x498786
xor ebx, ebx
xor edi, edi
lea edx, [edi + 1]
cmp esi, edx
jle 0x4986ba
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0xd8]
mov ecx, edx
cmp eax, dword [esp + edi*4 + 0xd8]
cmovae ecx, edi
inc edx
mov edi, ecx
cmp edx, esi
jl 0x4986a0
mov eax, dword [esp + edi*4 + 0xd8]
mov dword [esp + 0x68], eax
mov dword [esp + edi*4 + 0xd8], 0xffffffff
cmp edi, ebx
je 0x498779
jle 0x498727
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov esi, dword [eax + 0x2c]
mov eax, dword [esp + edi*4 + 0x9c]
inc esi
add esi, edi
push esi
mov eax, dword [eax + 0x48]
mov dword [esp + 0x78], eax
push dword [eax + 0x14]
mov word [eax + 0x18], cx
push dword [eax]
mov eax, dword [eax + 0x1c]
push dword [eax + 0x28]
call dword [0x7272dc]
mov ecx, dword [esp + 0x84]
add esp, 0x10
mov al, byte [ecx + 0x18]
and al, 0xa
mov dword [ecx + 0x14], esi
cmp al, 0xa
jne 0x498727
mov dl, 3
call fcn.004885a0
mov eax, dword [esp + ebx*4 + 0x9c]
mov esi, dword [eax + 0x48]
mov ax, word [esp + edi*2 + 0x128]
mov edi, dword [esp + 0x68]
push edi
push dword [esi + 0x14]
mov word [esi + 0x18], ax
mov eax, dword [esi + 0x1c]
push dword [esi]
push dword [eax + 0x28]
call dword [0x7272dc]
mov al, byte [esi + 0x18]
add esp, 0x10
and al, 0xa
mov dword [esi + 0x14], edi
cmp al, 0xa
jne 0x49876b
mov dl, 3
mov ecx, esi
call fcn.004885a0
mov eax, dword [esp + ebx*4 + 0x9c]
mov esi, dword [esp + 0x30]
mov dword [eax + 0x54], edi
inc ebx
cmp ebx, esi
jl 0x498691
mov ebx, dword [esp + 0x20]
test byte [esp + 0x34], 8
mov eax, dword [esp + esi*4 + 0x98]
mov ecx, dword [esp + 0x78]
mov eax, dword [eax + 0x54]
bswap eax
mov dword [ecx], eax
jne 0x4987cf
mov ecx, dword [esp + 0x58]
cmp ecx, esi
je 0x4987cf
lea edx, [esp + 0x90]
lea eax, [esp + 0x9c]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + esi*4 + 0x98]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x38]
cmp byte [edx + 0x11], 0
je 0x4989c4
mov esi, dword [esp + 0x9c]
xor edi, edi
mov dword [esp + 0x78], 0
mov eax, dword [esi + 0x38]
movzx ecx, word [esi + 0x12]
mov dword [esp + 0x2c], eax
movzx eax, byte [esi + 1]
add ecx, eax
mov eax, dword [edx + 0x24]
xor edx, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x1c], edx
test ebx, ebx
jle 0x4989cb
xor eax, eax
mov dword [esp + 0x44], eax
nop
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + edi*4]
mov dword [esp + 0x3c], ecx
cmp edi, dword [esp + 0x28]
jne 0x4988a3
inc edx
mov dword [esp + 0x1c], edx
cmp edx, dword [esp + 0x30]
jge 0x49886c
mov edx, dword [esp + edx*4 + 0x9c]
jmp 0x498873
push 0x6f29f0
push 0xf1cb
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00482f10
add esp, 0x10
mov ebx, 0xb
jmp 0x498d3e
mov edx, dword [esp + edx*4 + 0x90]
movzx eax, byte [edx + 1]
movzx ecx, word [edx + 0x12]
add ecx, eax
xor eax, eax
cmp byte [esp + 0x17], al
sete al
add eax, dword [esp + 0x28]
add eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
cmp edi, dword [esp + eax + 0xc4]
jne 0x4988ce
mov eax, dword [esp + 0x78]
inc eax
mov dword [esp + 0x78], eax
shl eax, 2
cmp byte [esp + 0x17], 0
mov dword [esp + 0x44], eax
mov esi, dword [esp + eax + 0x9c]
je 0x4989b7
cmp edx, dword [esp + 0x30]
jge 0x4988f4
mov eax, dword [esi + 0x54]
cmp eax, dword [esp + edx*4 + 0x108]
jne 0x4988f4
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jb 0x4988f4
add eax, dword [esp + 0x74]
cmp ecx, eax
jb 0x4989b3
cmp word [esp + 0x60], 0
jne 0x49891e
mov edx, dword [ecx]
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x38]
push eax
push dword [esi + 0x54]
bswap edx
push 5
call fcn.004912c0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x498949
mov edx, edi
lea ecx, [esp + 0x48]
call fcn.004970d0
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x48]
movzx eax, ax
mov dword [esp + 0x20], ebx
cmp ax, word [esi + 0xc]
jbe 0x4989a7
cmp dword [esp + 0x18], 0
jne 0x498d3a
lea eax, [esp + 0xd8]
push eax
push dword [esp + 0x40]
mov eax, dword [esi + 0x50]
push esi
call eax
mov ax, word [esp + 0xf6]
add esp, 0xc
test ax, ax
je 0x4989b3
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push ecx
push dword [esi + 0x54]
mov ecx, dword [esi + 0x34]
movzx eax, ax
push 3
mov edx, dword [eax + edx]
bswap edx
call fcn.004912c0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x4989ab
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x498d3a
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
inc edi
cmp edi, ebx
jl 0x498820
mov esi, dword [esp + 0x9c]
mov eax, dword [esp + 0x30]
xor edi, edi
dec eax
test eax, eax
jle 0x498b42
nop word [eax + eax]
mov eax, dword [esp + edi*4 + 0x9c]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + edi*4 + 0xc4]
mov esi, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x54]
movzx edx, bx
mov ebx, dword [esp + 0x1c]
movzx ecx, word [ecx + eax*2]
mov eax, dword [esp + 0x80]
add edx, ecx
add eax, dword [esp + 0x70]
cmp byte [ebx + 5], 0
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
jne 0x498a3f
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x498af3
cmp byte [esp + 0x17], 0
je 0x498ada
lea eax, [esp + 0x108]
push eax
mov eax, dword [esp + 0x78]
push dword [eax - 4]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [eax + 0x50]
call eax
mov edx, dword [esp + 0x118]
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov esi, eax
mov ecx, dword [esp + 0x108]
test edx, edx
ja 0x498ac6
jb 0x498a85
cmp ecx, 0x7f
ja 0x498a97
and cl, 0x7f
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
xor eax, eax
jmp 0x498af7
test edx, edx
ja 0x498ac6
jb 0x498aa5
cmp ecx, 0x3fff
ja 0x498ac6
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov edx, dword [esp + 0x3c]
or al, 0x80
mov byte [edx + 4], al
mov eax, 2
mov byte [edx + 5], cl
lea edx, [eax + 4]
xor eax, eax
jmp 0x498af7
push edx
push ecx
lea ecx, [eax + 4]
call fcn.00484640
add esp, 8
lea edx, [eax + 4]
xor eax, eax
jmp 0x498af7
sub esi, 4
cmp ecx, 4
jne 0x498af7
mov eax, dword [esp + 0x40]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov eax, dword [esp + 0x3c]
add dword [esp + 0x70], edx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push dword [ecx + 0x54]
mov ecx, dword [esp + 0x48]
push eax
push edx
mov edx, dword [esp + 0x7c]
push esi
lea edx, [edx + edi]
call fcn.00496e70
mov eax, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
jne 0x498d3a
mov eax, dword [esp + 0x30]
inc edi
dec eax
cmp edi, eax
jl 0x4989e0
mov esi, dword [esp + 0x9c]
mov edi, dword [esp + 0x30]
mov eax, 1
sub eax, edi
mov dword [esp + 0x70], eax
cmp eax, edi
jge 0x498c48
nop dword [eax]
cdq
lea edi, [esp + 0x120]
mov ecx, eax
xor ecx, edx
sub ecx, edx
add edi, ecx
cmp byte [edi], 0
jne 0x498c24
cmp dword [esp + 0x70], 0
jge 0x498b94
mov eax, dword [esp + ecx*4 + 0xf0]
cmp eax, dword [esp + ecx*4 + 0xc0]
jl 0x498c24
test ecx, ecx
jne 0x498ba5
mov edx, dword [esp + 0xc4]
xor ebx, ebx
xor eax, eax
jmp 0x498bd4
cmp ecx, dword [esp + 0x58]
jge 0x498bbb
xor ebx, ebx
cmp byte [esp + 0x17], bl
sete bl
add ebx, dword [esp + ecx*4 + 0xf0]
mov edx, dword [esp + ecx*4 + 0xc4]
xor eax, eax
cmp byte [esp + 0x17], al
sete al
add eax, dword [esp + ecx*4 + 0xc0]
sub edx, eax
lea esi, [ecx*4]
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + esi + 0xa0]
push edx
push eax
mov edx, ebx
call fcn.00497400
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x498435
mov eax, dword [esp + esi + 0x9c]
mov cx, word [esp + 0x64]
sub cx, word [esp + esi + 0xb0]
mov ebx, dword [esp + 0x48]
mov byte [edi], 1
mov word [eax + 0x10], cx
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x30]
inc eax
mov dword [esp + 0x70], eax
cmp eax, edi
jl 0x498b60
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x10], eax
cmp dword [ebp + 0xc], 0
je 0x498cb3
mov ebx, dword [esp + 0x40]
cmp word [ebx + 0x12], 0
jne 0x498cb3
movzx eax, byte [ebx + 6]
cmp ax, word [esi + 0x10]
ja 0x498cb3
mov ecx, esi
call fcn.004917e0
mov ecx, dword [esp + 0x9c]
mov edx, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
call fcn.004978a0
mov edi, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
jne 0x498d08
mov ecx, dword [esp + 0x9c]
mov edx, ecx
push dword [ecx + 0x54]
mov ecx, dword [ecx + 0x34]
call fcn.00496470
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
jmp 0x498d08
mov ecx, dword [esp + 0x38]
cmp byte [ecx + 0x11], 0
je 0x498d04
cmp word [esp + 0x60], 0
jne 0x498d04
xor esi, esi
test edi, edi
jle 0x498d04
nop dword [eax + eax]
mov eax, dword [esp + esi*4 + 0x9c]
lea edx, [esp + 0x24]
push edx
push dword [eax + 0x54]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.004912c0
mov ecx, dword [esp + 0x44]
inc esi
add esp, 0xc
cmp esi, edi
jl 0x498cd0
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], edi
jmp 0x498d08
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x58]
cmp esi, ebx
jge 0x498d3a
mov ecx, dword [esp + esi*4 + 0x90]
test edi, edi
jne 0x498d31
push dword [ecx + 0x54]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.00496470
add esp, 4
mov edi, eax
inc esi
cmp esi, ebx
jl 0x498d14
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, eax
call fcn.00480c20
mov eax, dword [esp + 0x58]
xor esi, esi
test eax, eax
jle 0x498da4
mov ecx, dword [esp + esi*4 + 0x90]
test ecx, ecx
je 0x498d9f
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x18], 0x40
mov edi, dword [ecx + 0x10]
je 0x498d8f
call fcn.0048bf80
jmp 0x498d94
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x94]
push 0
push eax
call fcn.006440e0
mov ebx, dword [esp + 0x24]
add esp, 0xc
xor eax, eax
jmp 0x498d42
call fcn.00488760
mov ecx, edi
call fcn.0048d1b0
mov eax, dword [esp + 0x58]
inc esi
cmp esi, eax
jl 0x498d53
mov eax, dword [esp + 0x30]
xor esi, esi
test eax, eax
jle 0x498de3
nop
mov ecx, dword [esp + esi*4 + 0x9c]
test ecx, ecx
je 0x498dde
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x18], 0x40
mov edi, dword [ecx + 0x10]
je 0x498dce
call fcn.0048bf80
jmp 0x498dd3
call fcn.00488760
mov ecx, edi
call fcn.0048d1b0
mov eax, dword [esp + 0x30]
inc esi
cmp esi, eax
jl 0x498db0
mov ecx, dword [esp + 0x134]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0063db0b
mov esp, ebp
pop ebp
ret