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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0x10c], eax
test ecx, ecx
jne 0x466988
pop edi
lea eax, [ecx + 7]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
push esi
lea esi, [ecx + edx]
cmp esi, 2
jae 0x4669a1
mov dword [ebp - 0x128], edi
jmp 0x4669d5
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4669b0
mov dword [ebp - 0x128], edi
jmp 0x4669cb
cmp eax, esi
jne 0x4669c4
mov eax, dword [ebp + 0x18]
add esi, 0xfffffffe
add esi, eax
mov dword [ebp - 0x128], esi
jmp 0x4669ce
dec eax
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x18]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x128]
sub eax, ecx
lea ecx, [eax + esi]
cmp ecx, edx
jne 0x4669fc
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x466a10
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 [ebp - 0x130], ecx
mov ebx, dword [ecx]
bswap ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x134], ebx
lea esp, [esp]
test edi, edi
jne 0x467ed8
mov eax, dword [ebp - 0x10c]
cmp ebx, dword [eax + 0x30]
jbe 0x466a71
push 0x55404c
push 0x1084a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
mov edi, 0xb
add esp, 0x14
mov dword [ebp - 0xe8], edi
jmp 0x466afd
mov eax, dword [eax]
lea ecx, [ebp - 0x100]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xcc]
call eax
mov edi, eax
add esp, 0x10
mov dword [ebp - 0xe8], edi
test edi, edi
jne 0x466afd
mov edx, dword [ebp - 0x100]
mov ecx, dword [edx + 8]
mov dword [ebp + esi*4 - 0x24], ecx
cmp byte [ecx], al
jne 0x466b98
cmp ebx, dword [ecx + 4]
je 0x466ad1
mov eax, dword [edx + 4]
cmp ebx, 1
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0x10c]
mov dword [ecx + 0x34], eax
setne al
dec al
mov dword [ecx + 0x48], edx
and al, 0x64
mov dword [ecx + 4], ebx
mov byte [ecx + 9], al
mov edi, ecx
push edi
call fcn.00469130
add esp, 4
mov dword [ebp - 0xe8], eax
test eax, eax
je 0x466b98
test edi, edi
je 0x466af7
push edi
call fcn.00486e50
add esp, 4
mov edi, dword [ebp - 0xe8]
mov dword [ebp - 0xec], edi
test edi, edi
jne 0x467ed8
mov eax, dword [ebp + esi*4 - 0x24]
cmp dword [eax + 0x14], edi
jge 0x466b33
push eax
call fcn.00468730
mov edi, eax
add esp, 4
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xec], edi
test edi, edi
jne 0x466c76
mov ecx, esi
dec esi
test ecx, ecx
je 0x466c82
mov ebx, dword [ebp - 0x114]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x466ba5
mov eax, dword [ebp - 0x128]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x466ba5
mov eax, dword [ebx + 0x24]
push eax
mov dword [ebp + esi*4 - 0x10], eax
mov ebx, dword [eax]
mov eax, dword [ebp - 0x114]
bswap ebx
push eax
mov dword [ebp - 0x118], ebx
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x134], ebx
call eax
movzx eax, ax
add esp, 8
mov dword [ebp + esi*4 - 0x38], eax
mov eax, dword [ebp - 0x114]
mov byte [eax + 0xc], 0
jmp 0x466a30
xor edi, edi
mov dword [ebp - 0xe8], edi
jmp 0x466afd
mov ecx, dword [ebp - 0x128]
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]
movzx ecx, cx
and ecx, eax
mov eax, dword [ebx + 0x38]
add eax, ecx
push eax
mov dword [ebp + esi*4 - 0x10], eax
push ebx
mov ecx, dword [eax]
mov eax, dword [ebx + 0x4c]
bswap ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x134], ecx
call eax
mov edx, dword [ebp - 0x10c]
add esp, 8
movzx ebx, ax
mov dword [ebp + esi*4 - 0x38], ebx
test byte [edx + 0x18], 0xc
je 0x466c39
mov eax, dword [ebp - 0x114]
mov edi, dword [ebp + esi*4 - 0x10]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [ebx + ecx]
cmp eax, dword [edx + 0x28]
jg 0x466c39
mov eax, dword [ebp - 0x138]
push ebx
add eax, ecx
push edi
push eax
call fcn.005167a0
mov eax, dword [ebp - 0x114]
add esp, 0xc
sub edi, dword [eax + 0x38]
add edi, dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x10], edi
mov ecx, dword [ebp - 0x128]
lea eax, [ebp - 0xec]
push eax
push ebx
mov ebx, dword [ebp - 0x114]
movzx eax, byte [ebx + 0xc]
sub ecx, eax
add ecx, esi
push ecx
push ebx
call fcn.00470870
mov edi, dword [ebp - 0xec]
add esp, 0x10
mov ebx, dword [ebp - 0x118]
mov dword [ebp - 0xe8], edi
jmp 0x466a30
lea eax, [esi*4]
jmp 0x467edf
mov eax, dword [ebp - 0x10c]
mov ebx, dword [ebp - 0x120]
mov esi, dword [eax + 0x24]
mov eax, 0xaaaaaaab
lea ecx, [esi - 8]
mul ecx
mov edi, edx
shr edi, 2
add edi, 4
imul edi, ebx
add edi, 3
and edi, 0xfffffffc
lea eax, [edi + edi*2]
lea eax, [esi + eax*2]
cdq
push edx
push eax
call fcn.004a7290
add esp, 8
mov dword [ebp - 0xdc], eax
test eax, eax
jne 0x466cd6
mov dword [ebp - 0xe8], 7
jmp 0x467eee
mov ecx, dword [ebp - 0x24]
lea eax, [eax + edi*4]
mov dword [ebp - 0xd8], eax
xor edx, edx
lea eax, [eax + edi*2]
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0x100], eax
movzx eax, byte [ecx + 8]
movzx edi, byte [ecx + 3]
shl ax, 2
movzx eax, ax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x108], edi
mov dword [ebp - 0xf4], edx
test ebx, ebx
jle 0x466f87
lea esp, [esp]
mov ebx, dword [ebp + edx*4 - 0x24]
mov dword [ebp - 0xfc], ebx
movzx eax, word [ebx + 0x1a]
mov edx, dword [ebx + 0x38]
mov ecx, eax
movzx esi, word [ebx + 0x12]
movzx edi, word [ebx + 0x18]
add esi, edx
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x124], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x4671c1
movzx eax, byte [ebx + 0xc]
mov ecx, dword [ebp - 0xd8]
add eax, edi
add eax, eax
push eax
mov eax, dword [ebp - 0xe4]
push 0
lea eax, [ecx + eax*2]
push eax
call fcn.00516d20
add esp, 0xc
cmp byte [ebx + 0xc], 0
jbe 0x466e25
movzx edx, word [ebx + 0x1c]
cmp edi, edx
jb 0x467194
test edx, edx
je 0x466df1
mov edi, dword [ebp - 0xf8]
mov ebx, dword [ebp - 0x11c]
mov edi, edi
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, di
mov edi, dword [ebp - 0xdc]
movzx ecx, cx
and ecx, eax
mov eax, dword [ebp - 0xe4]
add ecx, ebx
mov dword [edi + eax*4], ecx
inc eax
mov edi, dword [ebp - 0xf8]
mov dword [ebp - 0xe4], eax
sub edx, 1
jne 0x466db0
mov ebx, dword [ebp - 0xfc]
mov dword [ebp - 0x124], esi
xor edx, edx
cmp byte [ebx + 0xc], dl
jbe 0x466e25
mov edi, dword [ebp - 0xe4]
lea ecx, [ebx + 0x24]
mov esi, dword [ebp - 0xdc]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + edi*4], eax
inc edx
movzx eax, byte [ebx + 0xc]
inc edi
cmp edx, eax
jl 0x466e07
mov esi, dword [ebp - 0x124]
mov dword [ebp - 0xe4], edi
movzx eax, word [ebx + 0x12]
xor edx, edx
add eax, dword [ebp - 0x11c]
movzx ecx, word [ebx + 0x18]
lea eax, [eax + ecx*2]
mov ecx, eax
sub ecx, esi
inc ecx
shr ecx, 1
cmp eax, esi
sbb edi, edi
not edi
and edi, ecx
jbe 0x466e95
mov ebx, dword [ebp - 0x11c]
nop
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
mov eax, dword [ebp - 0x140]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [ebp - 0xe4]
add ecx, ebx
mov ebx, dword [ebp - 0xdc]
mov dword [ebx + eax*4], ecx
mov ecx, eax
mov ebx, dword [ebp - 0x11c]
inc ecx
mov dword [ebp - 0xe4], ecx
cmp edx, edi
jb 0x466e50
mov ebx, dword [ebp - 0xfc]
jmp 0x466e9b
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xf4]
mov edi, dword [ebp - 0x108]
mov dword [ebp + edx*4 - 0xa4], ecx
cmp edx, dword [ebp - 0x104]
jge 0x466f6e
test edi, edi
jne 0x466f6e
mov esi, dword [ebp - 0xd8]
movzx eax, word [ebp + edx*4 - 0x38]
mov edi, dword [ebp - 0x110]
push eax
push dword [ebp + edx*4 - 0x10]
mov word [esi + ecx*2], ax
mov esi, dword [ebp - 0x100]
add esi, edi
add edi, eax
push esi
mov dword [ebp - 0x110], edi
call fcn.005167a0
mov eax, dword [ebp - 0x12c]
add esp, 0xc
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xdc]
movzx eax, ax
add eax, esi
mov esi, dword [ebp - 0xd8]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x12c]
sub word [esi + ecx*2], ax
cmp byte [ebx + 8], 0
jne 0x466f38
mov eax, dword [ebx + 0x38]
mov ecx, dword [edx + ecx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xe4]
jmp 0x466f5b
cmp word [esi + ecx*2], 4
jae 0x466f5b
mov eax, dword [ebp - 0x100]
mov byte [eax + edi], 0
inc edi
inc word [esi + ecx*2]
cmp word [esi + ecx*2], 4
jb 0x466f45
mov dword [ebp - 0x110], edi
mov edx, dword [ebp - 0xf4]
inc ecx
mov edi, dword [ebp - 0x108]
mov dword [ebp - 0xe4], ecx
inc edx
mov dword [ebp - 0xf4], edx
cmp edx, dword [ebp - 0x120]
jl 0x466d20
mov eax, dword [ebp - 0x12c]
movzx esi, ax
xor ecx, ecx
mov eax, dword [ebp - 0x10c]
xor ebx, ebx
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0xf8], ebx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add esi, eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x11c], esi
test eax, eax
jle 0x4670b6
lea esp, [esp]
mov esi, dword [ebp + ebx*4 - 0x24]
mov edx, dword [ebp + ebx*4 - 0xa4]
mov dword [ebp - 0x140], edx
mov eax, dword [esi + 0x3c]
mov dword [ebp + ecx*4 - 0xd4], eax
mov dword [ebp + ecx*4 - 0xbc], edx
test ecx, ecx
je 0x466ff6
cmp edx, dword [ebp + ecx*4 - 0xc0]
jne 0x466ff6
dec ecx
mov dword [ebp - 0xf4], ecx
test edi, edi
jne 0x46701b
mov eax, dword [ebp - 0x114]
inc ecx
mov dword [ebp - 0xf4], ecx
mov eax, dword [eax + 0x3c]
mov dword [ebp + ecx*4 - 0xd4], eax
lea eax, [edx + 1]
mov dword [ebp + ecx*4 - 0xbc], eax
mov edi, dword [ebp - 0x11c]
lea eax, [ebp - 0x38]
sub edi, dword [esi + 0x14]
lea eax, [eax + ebx*4]
cmp byte [esi + 0xc], 0
mov dword [ebp - 0x104], eax
mov dword [eax], edi
mov dword [ebp - 0x100], 0
jbe 0x46708a
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [ebp - 0x100]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [ebp - 0x100], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x467045
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ebp - 0x140]
mov ebx, dword [ebp - 0xf8]
mov dword [eax], edi
mov eax, dword [ebp - 0x120]
inc ecx
mov edi, dword [ebp - 0x108]
mov dword [ebp + ebx*4 - 0x60], edx
inc ebx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xf4], ecx
cmp ebx, eax
jl 0x466fc0
mov esi, dword [ebp - 0x11c]
mov dword [ebp - 0x110], 0
mov ecx, eax
mov dword [ebp - 0xf4], ecx
test eax, eax
jle 0x467319
mov edx, dword [ebp - 0xe4]
lea eax, [ebp - 0x60]
xor ebx, ebx
mov edi, 1
sub eax, 4
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0x104], eax
nop
cmp dword [ebp + ebx - 0x38], esi
jle 0x46721a
lea ebx, [ebx]
cmp edi, ecx
jl 0x467122
lea ecx, [edi + 1]
mov dword [ebp - 0xf4], ecx
cmp ecx, 5
jg 0x467425
mov dword [ebp + ebx - 0x34], 0
mov dword [ebp + ebx - 0x5c], edx
mov esi, dword [ebp + ebx - 0x60]
mov ecx, dword [ebp - 0xd8]
lea edi, [esi - 1]
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x467151
lea eax, [ebp - 0xe4]
push edi
push eax
call fcn.0046d890
mov ecx, dword [ebp - 0xd8]
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
sub dword [ebp + ebx - 0x38], eax
cmp dword [ebp - 0x108], 0
jne 0x4671f0
cmp esi, dword [ebp - 0xe4]
jge 0x4671ee
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x46718c
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.0046d890
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4671f0
push 0x55404c
push 0x11e21
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x467e74
push 0x55404c
push 0x11e09
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x467e74
xor eax, eax
add dword [ebp + ebx - 0x34], eax
mov esi, dword [ebp - 0x11c]
mov edx, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xf4]
mov dword [ebp + ebx - 0x60], edi
mov edi, dword [ebp - 0xfc]
cmp dword [ebp + ebx - 0x38], esi
jg 0x467100
cmp dword [ebp + ebx - 0x60], edx
jge 0x4672c4
mov edi, dword [ebp - 0xd8]
lea ebx, [ebx]
mov esi, dword [ebp + ebx - 0x60]
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x467256
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.0046d890
mov edx, dword [ebp - 0xe4]
add esp, 8
movzx eax, ax
movzx ecx, ax
mov eax, dword [ebp + ebx - 0x38]
add ecx, 2
add eax, ecx
cmp eax, dword [ebp - 0x11c]
jg 0x4672b8
inc esi
mov dword [ebp + ebx - 0x38], eax
cmp dword [ebp - 0x108], 0
mov dword [ebp + ebx - 0x60], esi
jne 0x4672ac
cmp esi, edx
jge 0x4672aa
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x4672a2
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.0046d890
mov edx, dword [ebp - 0xe4]
add esp, 8
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x4672ac
xor ecx, ecx
sub dword [ebp + ebx - 0x34], ecx
cmp esi, edx
jl 0x467230
mov edi, dword [ebp - 0xfc]
mov esi, dword [ebp - 0x11c]
mov ecx, dword [ebp + ebx - 0x60]
cmp ecx, edx
jl 0x4672d6
mov ecx, edi
mov dword [ebp - 0xf4], ecx
jmp 0x4672fa
cmp dword [ebp - 0x110], 0
jle 0x4672ea
mov eax, dword [ebp - 0x104]
mov eax, dword [eax + ebx]
jmp 0x4672ec
xor eax, eax
cmp ecx, eax
jle 0x467452
mov ecx, dword [ebp - 0xf4]
mov eax, dword [ebp - 0x110]
inc edi
inc eax
mov dword [ebp - 0xfc], edi
add ebx, 4
mov dword [ebp - 0x110], eax
cmp eax, ecx
jl 0x4670f0
lea eax, [ecx - 1]
mov ecx, eax
mov dword [ebp - 0xf8], eax
test ecx, ecx
jle 0x4674be
lea esp, [esp]
shl ecx, 2
mov dword [ebp - 0xfc], ecx
mov eax, dword [ebp + ecx - 0x3c]
mov edi, dword [ebp + ecx - 0x38]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x60]
sub eax, 4
mov dword [ebp - 0x124], eax
mov esi, dword [eax + ecx]
mov ecx, dword [ebp - 0xd8]
dec esi
mov eax, esi
sub eax, dword [ebp - 0x108]
inc eax
cmp word [ecx + eax*2], 0
lea ebx, [ecx + eax*2]
jne 0x467386
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0046d890
add esp, 8
mov ecx, dword [ebp - 0xd8]
cmp word [ecx + esi*2], 0
jne 0x46739d
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.0046d890
add esp, 8
mov edx, dword [ebp - 0x110]
test edi, edi
je 0x4673e7
cmp dword [ebp + 0x18], 0
jne 0x46747f
mov ecx, dword [ebp - 0xf4]
mov eax, dword [ebp - 0xf8]
dec ecx
sub eax, ecx
mov ecx, edx
neg eax
sbb eax, eax
and eax, 2
sub ecx, eax
mov eax, dword [ebp - 0xd8]
movzx eax, word [eax + esi*2]
sub ecx, eax
movzx eax, word [ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x46747f
movzx eax, word [ebx]
mov ecx, 0xfffffffe
add eax, 2
sub ebx, 2
add edi, eax
mov eax, dword [ebp - 0xd8]
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [ebp - 0xfc]
add edx, ecx
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x110], edx
mov dword [ecx + eax], esi
sub esi, 1
jns 0x467380
jmp 0x467485
push 0x55404c
push 0x11e86
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x467e74
push 0x55404c
push 0x11ea7
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x467e74
mov eax, dword [ebp - 0xfc]
mov ecx, dword [ebp - 0xf8]
mov dword [ebp + eax - 0x3c], edx
mov edx, dword [ebp - 0x124]
mov dword [ebp + eax - 0x38], edi
cmp ecx, 1
jle 0x4674a4
mov eax, dword [edx + eax - 4]
jmp 0x4674a6
xor eax, eax
cmp dword [edx + ecx*4], eax
jle 0x46753c
dec ecx
mov dword [ebp - 0xf8], ecx
test ecx, ecx
jg 0x467330
mov eax, dword [ebp - 0x24]
xor edi, edi
mov eax, dword [eax + 0x38]
movzx ebx, byte [eax]
mov dword [ebp - 0xf8], ebx
cmp dword [ebp - 0xf4], edi
jle 0x4676f1
jmp 0x4674e0
cmp edi, dword [ebp - 0x120]
jge 0x4675f8
mov ebx, dword [ebp + edi*4 - 0x24]
mov dword [ebp + edi*4 - 0x4c], ebx
mov dword [ebp - 0x100], ebx
mov dword [ebp + edi*4 - 0x24], 0
mov esi, dword [ebx + 0x48]
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
je 0x46757f
mov eax, dword [ecx + 0x18]
cmp eax, dword [esi + 0x18]
jb 0x46757f
cmp dword [ecx + 0x60], 0
je 0x46757b
push esi
call fcn.004cce70
add esp, 4
test eax, eax
je 0x467569
push esi
call fcn.004ccf90
add esp, 4
mov dword [ebp - 0xe8], eax
mov edx, eax
jmp 0x4675b2
push 0x55404c
push 0x11ed1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x467e74
mov dword [ebp - 0xe8], 0
mov edx, dword [ebp - 0xe8]
jmp 0x4675b2
xor edx, edx
jmp 0x4675ac
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0xe8], edx
test edx, edx
jne 0x4675b2
mov eax, dword [ecx + 0x94]
push esi
cmp eax, dword [ecx + 0x98]
jbe 0x4675a2
call fcn.00482360
jmp 0x4675a7
call fcn.00483620
mov edx, eax
add esp, 4
mov dword [ebp - 0xe8], edx
mov esi, dword [ebp - 0xf0]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
inc esi
sub eax, dword [ebp - 0x128]
cmp edi, eax
mov dword [ebp - 0xec], edx
mov eax, dword [ebx + 0x48]
sete cl
mov dword [ebp - 0xf0], esi
inc ecx
movsx eax, word [eax + 0x1e]
cmp eax, ecx
jne 0x4676c4
test edx, edx
jne 0x467e74
mov ebx, dword [ebp - 0xf8]
jmp 0x4676b5
cmp dword [ebp + 0x18], 0
mov eax, 1
jne 0x467609
mov eax, dword [ebp - 0x118]
push 0
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp - 0x10c]
call fcn.004644d0
mov edx, eax
add esp, 0x14
mov dword [ebp - 0xe8], edx
mov dword [ebp - 0xec], edx
test edx, edx
jne 0x467e74
mov esi, dword [ebp - 0x100]
push ebx
push esi
call fcn.004e1af0
mov ecx, dword [ebp - 0x10c]
add esp, 8
inc dword [ebp - 0xf0]
mov eax, dword [ebp - 0xe4]
mov dword [ebp + edi*4 - 0x4c], esi
cmp byte [ecx + 0x11], 0
mov dword [ebp + edi*4 - 0xa4], eax
je 0x4676a3
lea eax, [ebp - 0xec]
push eax
mov eax, dword [ebp - 0x114]
push dword [eax + 4]
push 5
push dword [esi + 4]
push ecx
call fcn.00485790
mov eax, dword [ebp - 0xec]
add esp, 0x14
mov dword [ebp - 0xe8], eax
test eax, eax
jne 0x467e74
mov eax, dword [ebp - 0x134]
mov esi, dword [ebp - 0xf0]
mov dword [ebp - 0x118], eax
inc edi
cmp edi, dword [ebp - 0xf4]
jl 0x4674e0
jmp 0x4676f3
push 0x55404c
push 0x11ef0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x467e74
xor esi, esi
xor ecx, ecx
test esi, esi
jle 0x467747
lea esp, [esp]
mov eax, dword [ebp + ecx*4 - 0x4c]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [ebp + ecx*4 - 0x8c], edx
mov dword [ebp + ecx*4 - 0x74], edx
mov ax, word [eax + 0x1c]
mov word [ebp + ecx*2 - 0x10], ax
xor eax, eax
test ecx, ecx
jle 0x467742
jmp 0x467730
cmp dword [ebp + eax*4 - 0x8c], edx
je 0x4678df
inc eax
cmp eax, ecx
jl 0x467730
inc ecx
cmp ecx, esi
jl 0x467700
xor ebx, ebx
mov dword [ebp - 0x100], ebx
test esi, esi
jle 0x467809
xor edi, edi
lea ecx, [edi + 1]
cmp esi, ecx
jle 0x467796
mov ebx, dword [ebp - 0xf0]
xor esi, esi
jmp 0x467770
lea edx, [ecx*4]
mov eax, dword [ebp + edx - 0x74]
cmp eax, dword [ebp + esi - 0x74]
jae 0x467785
mov edi, ecx
mov esi, edx
inc ecx
cmp ecx, ebx
jl 0x467770
mov ebx, dword [ebp - 0x100]
mov esi, dword [ebp - 0xf0]
mov eax, dword [ebp + edi*4 - 0x74]
mov dword [ebp - 0x104], eax
mov dword [ebp + edi*4 - 0x74], 0xffffffff
cmp edi, ebx
je 0x4677fa
jle 0x4677d1
mov eax, dword [ebp - 0x10c]
xor edx, edx
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp + edi*4 - 0x4c]
inc ecx
add ecx, edi
push ecx
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], dx
call fcn.004aa9c0
add esp, 8
mov esi, dword [ebp + ebx*4 - 0x4c]
mov ax, word [ebp + edi*2 - 0x10]
mov edi, dword [ebp - 0x104]
push edi
mov ecx, dword [esi + 0x48]
push ecx
mov word [ecx + 0x1c], ax
call fcn.004aa9c0
mov dword [esi + 4], edi
add esp, 8
mov esi, dword [ebp - 0xf0]
inc ebx
mov dword [ebp - 0x100], ebx
cmp ebx, esi
jl 0x467757
test byte [ebp - 0xf8], 8
mov ecx, dword [ebp + esi*4 - 0x50]
mov edx, dword [ebp - 0x130]
mov eax, dword [ecx + 4]
bswap eax
mov dword [edx], eax
jne 0x467847
mov edx, dword [ebp - 0x120]
cmp edx, esi
je 0x467847
lea eax, [ebp - 0x4c]
cmp esi, edx
jg 0x467837
lea eax, [ebp - 0x24]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10c]
cmp byte [eax + 0x11], 0
je 0x467ac5
mov ecx, dword [ebp - 0x4c]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x118], ecx
mov edi, ecx
mov dword [ebp - 0x130], 0
movzx edx, word [ecx + 0x18]
movzx eax, byte [ecx + 0xc]
add edx, eax
mov dword [ebp - 0x124], edx
cmp dword [ebp - 0xe4], ebx
jle 0x467ac5
xor eax, eax
mov dword [ebp - 0xfc], eax
jmp 0x4678a0
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + ebx*4]
mov dword [ebp - 0xf8], ecx
cmp ebx, edx
jne 0x467938
xor eax, eax
cmp dword [ebp - 0x108], eax
sete al
mov dword [ebp - 0x104], eax
jmp 0x4678d0
inc esi
cmp esi, dword [ebp - 0xf0]
jge 0x46790c
mov edi, dword [ebp + esi*4 - 0x4c]
jmp 0x467910
push 0x55404c
push 0x11f1e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x467e74
mov edi, dword [ebp + esi*4 - 0x24]
movzx eax, word [edi + 0x18]
add eax, dword [ebp - 0x104]
movzx ecx, byte [edi + 0xc]
add ecx, eax
add edx, ecx
cmp ebx, edx
je 0x4678d0
mov ecx, dword [ebp - 0xf8]
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x124], edx
cmp ebx, dword [ebp + eax - 0x60]
jne 0x46796d
mov eax, dword [ebp - 0x130]
inc eax
mov dword [ebp - 0x130], eax
shl eax, 2
cmp dword [ebp - 0x108], 0
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + eax - 0x4c]
mov dword [ebp - 0x118], eax
je 0x467a84
jmp 0x467973
mov eax, dword [ebp - 0x118]
cmp esi, dword [ebp - 0xf0]
jge 0x467995
mov eax, dword [eax + 4]
cmp eax, dword [ebp + esi*4 - 0x8c]
jne 0x467995
cmp ecx, dword [edi + 0x38]
jb 0x467995
cmp ecx, dword [edi + 0x3c]
jb 0x467a84
cmp word [ebp - 0x12c], 0
jne 0x4679d0
lea eax, [ebp - 0xec]
push eax
mov eax, dword [ebp - 0x118]
push dword [eax + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [ebp - 0x10c]
call fcn.00485790
mov eax, dword [ebp - 0xec]
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xd8]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x4679f2
lea eax, [ebp - 0xe4]
push ebx
push eax
call fcn.0046d890
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x118]
cmp ax, word [ecx + 0x10]
jbe 0x467a70
cmp dword [ebp - 0xe8], 0
jne 0x467e74
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0xf8]
mov eax, dword [ecx + 0x50]
push ecx
call eax
movzx eax, word [ebp - 0x68]
add esp, 0xc
cmp eax, dword [ebp - 0x6c]
jae 0x467a7e
mov ecx, dword [edi + 0x3c]
mov edx, dword [ebp - 0xf8]
cmp ecx, edx
jb 0x467a3a
add eax, edx
cmp ecx, eax
jb 0x467a98
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0xec]
push eax
movzx eax, word [ebp - 0x66]
push dword [ecx + 4]
mov eax, dword [eax + edx - 4]
push 3
bswap eax
push eax
push dword [ecx + 0x34]
call fcn.00485790
mov edx, dword [ebp - 0xec]
add esp, 0x14
mov dword [ebp - 0xe8], edx
jmp 0x467a76
mov edx, dword [ebp - 0xe8]
test edx, edx
jne 0x467e74
mov edx, dword [ebp - 0x124]
inc ebx
cmp ebx, dword [ebp - 0xe4]
jge 0x467ac5
mov eax, dword [ebp - 0xfc]
jmp 0x4678a0
push 0x55404c
push 0x10533
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x467e74
mov ebx, dword [ebp - 0xf0]
xor esi, esi
lea eax, [ebx - 1]
test eax, eax
jle 0x467c91
jmp 0x467ae0
mov eax, dword [ebp + esi*4 - 0x60]
mov ecx, dword [ebp - 0xdc]
mov edi, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
mov ebx, dword [ebp - 0x12c]
mov dword [ebp - 0x104], ecx
mov ecx, dword [ebp - 0xd8]
movzx edx, bx
mov ebx, dword [ebp - 0x13c]
add ebx, dword [ebp - 0x138]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp + esi*4 - 0x4c]
add edx, eax
cmp byte [ecx + 8], 0
mov ecx, dword [ebp - 0x104]
jne 0x467b38
mov eax, dword [ebp + esi*4 - 0x4c]
mov ecx, dword [eax + 0x38]
mov eax, dword [edi]
mov dword [ecx + 8], eax
jmp 0x467be3
cmp dword [ebp - 0x108], 0
je 0x467bc8
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp + esi*4 - 0x4c]
push dword [ecx - 4]
push eax
mov eax, dword [eax + 0x50]
call eax
mov edx, dword [ebp - 0x8c]
mov edi, ebx
mov ecx, dword [ebp - 0x90]
add esp, 0xc
add ebx, 4
test edx, edx
ja 0x467bb6
jb 0x467b78
cmp ecx, 0x7f
ja 0x467b89
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x467be3
test edx, edx
ja 0x467bb6
jb 0x467b97
cmp ecx, 0x3fff
ja 0x467bb6
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 1], cl
or al, 0x80
shr edx, 7
mov byte [ebx], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x467be3
push edx
push ecx
push ebx
call fcn.00485f90
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x467be3
sub edi, 4
cmp eax, 4
jne 0x467be3
mov eax, dword [ebp - 0x114]
push edi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [ebp - 0x13c], edx
xor eax, eax
cmp dword [ebp - 0xbc], esi
jg 0x467c02
cmp eax, 6
jge 0x467c02
inc eax
cmp dword [ebp + eax*4 - 0xbc], esi
jle 0x467bf3
mov ecx, dword [ebp + eax*4 - 0xd4]
cmp ecx, edi
jb 0x467c14
lea eax, [edx + edi]
cmp ecx, eax
jb 0x467c64
lea eax, [ebp - 0xec]
push eax
mov eax, dword [ebp + esi*4 - 0x4c]
push dword [eax + 4]
mov eax, dword [ebp - 0x128]
push ebx
push edx
push edi
add eax, esi
push eax
push dword [ebp - 0x114]
call fcn.00479740
mov edi, dword [ebp - 0xec]
add esp, 0x1c
mov dword [ebp - 0xe8], edi
test edi, edi
jne 0x467e74
mov ebx, dword [ebp - 0xf0]
inc esi
lea eax, [ebx - 1]
cmp esi, eax
jl 0x467ae0
jmp 0x467c97
push 0x55404c
push 0x11fbb
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x467e74
mov edi, dword [ebp - 0xe8]
mov esi, 1
sub esi, ebx
cmp esi, ebx
jge 0x467d79
mov eax, esi
cdq
mov ecx, eax
lea eax, [ebp - 0x18]
xor ecx, edx
sub ecx, edx
add eax, ecx
mov dword [ebp - 0x104], eax
cmp byte [eax], 0
jne 0x467d70
test esi, esi
jns 0x467cd8
mov eax, dword [ebp + ecx*4 - 0xa8]
cmp eax, dword [ebp + ecx*4 - 0x64]
jl 0x467d70
test ecx, ecx
jne 0x467ce5
mov edi, dword [ebp - 0x60]
xor eax, eax
xor edx, edx
jmp 0x467d1c
cmp ecx, dword [ebp - 0x120]
jge 0x467d01
xor eax, eax
cmp dword [ebp - 0x108], eax
sete al
add eax, dword [ebp + ecx*4 - 0xa8]
jmp 0x467d07
mov eax, dword [ebp - 0xe4]
mov edi, dword [ebp + ecx*4 - 0x60]
xor edx, edx
cmp dword [ebp - 0x108], edx
sete dl
add edx, dword [ebp + ecx*4 - 0x64]
sub edi, edx
lea ebx, [ecx*4]
lea ecx, [ebp - 0xe4]
push ecx
mov ecx, dword [ebp + ebx - 0x4c]
push edi
push edx
push eax
push ecx
call fcn.00470a50
mov edi, eax
add esp, 0x14
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xec], edi
test edi, edi
jne 0x467e74
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebp + ebx - 0x4c]
mov byte [eax], 1
mov eax, dword [ebp - 0x11c]
sub eax, dword [ebp + ebx - 0x38]
mov ebx, dword [ebp - 0xf0]
mov dword [ecx + 0x14], eax
inc esi
cmp esi, ebx
jl 0x467ca6
cmp dword [ebp + 0x14], 0
je 0x467de0
mov esi, dword [ebp - 0x114]
cmp word [esi + 0x18], 0
jne 0x467de0
mov ebx, dword [ebp - 0x4c]
movzx eax, byte [esi + 9]
cmp eax, dword [ebx + 0x14]
jg 0x467dda
push 0xffffffffffffffff
push ebx
call fcn.0046fbf0
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xec]
push eax
push esi
push ebx
call fcn.0046f070
mov edi, dword [ebp - 0xec]
add esp, 0x14
mov dword [ebp - 0xe8], edi
test edi, edi
jne 0x467e39
push dword [ebx + 4]
push ebx
push dword [ebx + 0x34]
call fcn.00476850
add esp, 0xc
mov edi, eax
jmp 0x467e33
mov ebx, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0x10c]
cmp byte [ecx + 0x11], 0
je 0x467e39
cmp word [ebp - 0x12c], 0
jne 0x467e39
xor esi, esi
test ebx, ebx
jle 0x467e39
lea esp, [esp]
mov eax, dword [ebp + esi*4 - 0x4c]
lea edx, [ebp - 0xec]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov eax, dword [eax + 8]
bswap eax
push eax
push ecx
call fcn.00485790
mov ecx, dword [ebp - 0x10c]
inc esi
add esp, 0x14
cmp esi, ebx
jl 0x467e00
mov edi, dword [ebp - 0xec]
mov dword [ebp - 0xe8], edi
mov esi, dword [ebp - 0xf0]
mov ebx, dword [ebp - 0x120]
cmp esi, ebx
jge 0x467e74
lea esp, [esp]
mov eax, dword [ebp + esi*4 - 0x24]
test edi, edi
jne 0x467e69
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.00476850
add esp, 0xc
mov edi, eax
inc esi
cmp esi, ebx
jl 0x467e50
mov dword [ebp - 0xe8], edi
mov ebx, dword [ebp - 0xdc]
test ebx, ebx
je 0x467eee
cmp dword [0x5856e0], 0
je 0x467ecc
mov eax, dword [0x589cf8]
test eax, eax
je 0x467e9a
push eax
call dword [0x585730]
add esp, 4
push ebx
call dword [0x58570c]
sub dword [0x589dd0], eax
dec dword [0x589df4]
push ebx
call dword [0x585704]
mov eax, dword [0x589cf8]
add esp, 8
test eax, eax
je 0x467eee
push eax
call dword [0x585738]
add esp, 4
jmp 0x467eee
push ebx
call dword [0x585704]
add esp, 4
jmp 0x467eee
lea eax, [esi*4 + 4]
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00516d20
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x120], ebx
jle 0x467f5a
mov edx, dword [ebp + ebx*4 - 0x24]
test edx, edx
je 0x467f51
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x467f48
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004feb10
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x467f51
push edx
call fcn.004aaac0
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x120]
jl 0x467ef8
xor ebx, ebx
cmp dword [ebp - 0xf0], ebx
jle 0x467fc6
mov edx, dword [ebp + ebx*4 - 0x4c]
test edx, edx
je 0x467fbd
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x467fb4
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004feb10
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x467fbd
push edx
call fcn.004aaac0
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0xf0]
jl 0x467f64
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe8]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret