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

Disassembly:
sub esp, 0xfc
mov eax, dword [0x4ca1d0]
xor eax, esp
mov dword [esp + 0xf8], eax
xor eax, eax
push ebx
mov ebx, dword [esp + 0x108]
push ebp
mov ebp, dword [esp + 0x108]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x78], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0xf8], eax
mov byte [esp + 0xfc], al
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edx
cmp ecx, eax
jne 0x4647eb
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.0049473c
add esp, 0xfc
ret
movzx edx, word [ebp + 0x16]
push esi
movzx esi, byte [ebp + 0xc]
push edi
lea edi, [esi + edx]
cmp edi, 2
jge 0x464801
xor ecx, ecx
jmp 0x464829
cmp ebx, eax
jne 0x464809
xor ecx, ecx
jmp 0x46481d
cmp ebx, edi
jne 0x46481a
mov eax, dword [esp + 0x11c]
lea ecx, [edi + eax - 2]
jmp 0x46481d
lea ecx, [ebx - 1]
mov edi, 2
sub edi, dword [esp + 0x11c]
lea eax, [edi + 1]
mov dword [esp + 0x28], eax
mov eax, ecx
sub eax, esi
add eax, edi
mov dword [esp + 0x5c], ecx
cmp eax, edx
jne 0x46484b
movzx edx, byte [ebp + 9]
mov eax, dword [ebp + 0x38]
lea eax, [edx + eax + 8]
jmp 0x464862
mov edx, dword [ebp + 0x40]
mov ax, word [edx + eax*2]
mov dh, al
mov dl, ah
movzx eax, dx
movzx edx, word [ebp + 0x18]
and eax, edx
add eax, dword [ebp + 0x38]
mov ebx, dword [eax]
bswap ebx
add ecx, edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x2c]
cmp ebx, dword [eax + 0x2c]
jbe 0x4648a2
push 0x4b600c
push 0xfa8a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e160
add esp, 0x14
mov esi, 0xb
jmp 0x464915
push 0
lea edx, [esp + 0x20]
mov ecx, eax
mov eax, dword [ecx]
push edx
push ebx
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x464915
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
cmp byte [eax], 0
mov dword [esp + edi*4 + 0x60], eax
jne 0x464913
cmp ebx, dword [eax + 4]
je 0x4648f6
mov edx, dword [ecx + 4]
cmp ebx, 1
mov dword [eax + 0x38], edx
setne dl
dec dl
mov dword [eax + 0x48], ecx
mov ecx, dword [esp + 0x2c]
and dl, 0x64
mov dword [eax + 0x34], ecx
mov dword [eax + 4], ebx
mov byte [eax + 9], dl
mov ebx, eax
mov esi, eax
call fcn.0044e350
mov esi, eax
test esi, esi
je 0x464913
test ebx, ebx
je 0x464915
mov eax, dword [ebx + 0x48]
call fcn.00420f70
jmp 0x464915
xor esi, esi
mov dword [esp + 0x14], esi
test esi, esi
jne 0x464a3d
mov eax, dword [esp + edi*4 + 0x60]
movzx edx, byte [eax + 0xc]
movzx ecx, word [eax + 0x16]
add edx, dword [esp + 0x18]
dec dword [esp + 0x44]
mov eax, edi
lea esi, [edx + ecx + 1]
dec edi
mov dword [esp + 0x18], esi
test eax, eax
je 0x464a59
mov al, byte [ebp + 0xc]
test al, al
je 0x464987
movzx ecx, word [ebp + 0x1a]
cmp dword [esp + 0x44], ecx
jne 0x464987
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x4c]
bswap ecx
push eax
mov ebx, ecx
push ebp
mov dword [esp + edi*4 + 0xfc], eax
mov dword [esp + 0x54], ebx
call edx
movzx eax, ax
add esp, 8
mov dword [esp + edi*4 + 0x6c], eax
mov byte [ebp + 0xc], 0
jmp 0x464874
mov edx, dword [esp + 0x5c]
movzx ecx, al
mov eax, dword [ebp + 0x40]
sub edx, ecx
add edx, edi
mov cx, word [eax + edx*2]
mov dh, cl
mov dl, ch
movzx ecx, word [ebp + 0x18]
movzx eax, dx
mov edx, dword [ebp + 0x38]
and eax, ecx
mov ecx, dword [eax + edx]
add eax, edx
bswap ecx
push eax
mov dword [esp + edi*4 + 0xf8], eax
mov eax, dword [ebp + 0x4c]
mov ebx, ecx
push ebp
mov dword [esp + 0x54], ebx
call eax
mov ecx, dword [esp + 0x34]
movzx esi, ax
add esp, 8
test byte [ecx + 0x16], 0xc
mov dword [esp + edi*4 + 0x6c], esi
je 0x464a1b
mov ebx, dword [esp + edi*4 + 0xf4]
mov eax, ebx
sub eax, dword [ebp + 0x38]
lea edx, [esi + eax]
cmp edx, dword [ecx + 0x24]
jg 0x4659f7
mov edx, dword [esp + 0x80]
push esi
add edx, eax
push ebx
push edx
call fcn.00495ae0
mov eax, dword [esp + 0x8c]
sub eax, dword [ebp + 0x38]
add esp, 0xc
add eax, ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + edi*4 + 0xf4], eax
movzx edx, byte [ebp + 0xc]
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push esi
add eax, edi
push eax
mov esi, ebp
call fcn.0044ef90
add esp, 0xc
jmp 0x464874
lea ecx, [edi*4 + 4]
push ecx
lea edx, [esp + 0x64]
push 0
push edx
call fcn.00494ec0
add esp, 0xc
jmp 0x465a3d
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x20]
add esi, 3
and esi, 0xfffffffc
lea eax, [esi + esi*2]
lea eax, [edx + eax*2]
cdq
push edx
push eax
call fcn.0042a260
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x464a8c
mov dword [esp + 0x14], 7
jmp 0x464e3e
lea eax, [eax + esi*4]
mov dword [esp + 0x3c], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x60]
movzx cx, byte [eax + 8]
add cx, cx
add cx, cx
cmp dword [esp + 0x28], 0
mov dword [esp + 0x34], eax
movzx eax, byte [eax + 3]
movzx edx, cx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], 0
jle 0x464c9a
nop
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + ecx*4 + 0x60]
movzx edx, word [edi + 0x18]
mov ebx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x1c], edx
mov dl, byte [ebx]
add esi, ebx
cmp dl, byte [ecx]
jne 0x464e18
movzx eax, word [edi + 0x16]
movzx ecx, byte [edi + 0xc]
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x30]
add eax, ecx
add eax, eax
push eax
lea eax, [edx + ebp*2]
push 0
push eax
call fcn.00494ec0
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x464b8c
movzx eax, word [edi + 0x1a]
mov ecx, dword [esp + 0x38]
test eax, eax
jle 0x464b59
mov dword [esp + 0x18], eax
mov dx, word [esi]
mov ah, dl
add esi, 2
inc ebp
mov al, dh
movzx edx, ax
movzx eax, word [esp + 0x1c]
and edx, eax
add edx, ebx
sub dword [esp + 0x18], 1
mov dword [ecx + ebp*4 - 4], edx
jne 0x464b33
mov dword [esp + 0x30], ebp
xor eax, eax
cmp byte [edi + 0xc], al
jbe 0x464b8c
lea edx, [edi + 0x24]
mov dword [esp + 0x18], edx
jmp 0x464b70
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
add dword [esp + 0x18], 4
mov dword [ecx + ebp*4], edx
movzx edx, byte [edi + 0xc]
inc eax
inc ebp
cmp eax, edx
jl 0x464b70
mov dword [esp + 0x30], ebp
movzx ecx, word [edi + 0x12]
movzx eax, word [edi + 0x16]
add ecx, ebx
lea ebp, [ecx + eax*2]
mov eax, dword [esp + 0x30]
cmp esi, ebp
jae 0x464bd4
movzx edx, word [esp + 0x1c]
mov dword [esp + 0x18], edx
lea ebx, [ebx]
mov cx, word [esi]
mov dh, cl
add esi, 2
inc eax
mov dl, ch
movzx ecx, dx
and ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
add ecx, ebx
mov dword [edx + eax*4 - 4], ecx
cmp esi, ebp
jb 0x464bb0
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + ecx*4 + 0xe0], eax
mov eax, dword [esp + 0x28]
dec eax
cmp ecx, eax
jge 0x464c87
cmp dword [esp + 0x48], 0
jne 0x464c87
movzx eax, word [esp + ecx*4 + 0x6c]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + ecx*4 + 0xf4]
mov esi, dword [esp + 0x20]
mov word [ebp + ebx*2], ax
movzx eax, ax
push eax
add esi, edx
push ecx
add edx, eax
push esi
mov dword [esp + 0x4c], edx
call fcn.00495ae0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
movzx edx, ax
add edx, esi
mov dword [ecx + ebx*4], edx
sub word [ebp + ebx*2], ax
add esp, 0xc
cmp byte [edi + 8], 0
jne 0x464c56
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + ebx*4]
mov edx, dword [eax + 8]
mov dword [ecx], edx
jmp 0x464c7e
cmp word [ebp + ebx*2], 4
jae 0x464c7e
mov edi, edi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov byte [ecx + eax], 0
inc word [ebp + ebx*2]
inc eax
cmp word [ebp + ebx*2], 4
mov dword [esp + 0x40], eax
jb 0x464c60
mov ecx, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x30], ebx
inc ecx
cmp ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
jl 0x464ad0
mov ebp, dword [esp + 0x50]
movzx eax, word [esp + 0x44]
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0x24]
lea edx, [ecx + eax - 0xc]
xor eax, eax
cmp dword [esp + 0x28], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x10], eax
jle 0x464d27
mov ecx, dword [esp + 0x28]
lea esi, [esp + 0xe0]
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov edi, edi
mov esi, dword [esp + eax*4 + 0x60]
movzx ecx, word [esi + 0x14]
mov edi, dword [esp + 0x40]
sub edi, ecx
xor ebx, ebx
mov dword [esp + eax*4 + 0x6c], edi
cmp byte [esi + 0xc], bl
jbe 0x464d1c
lea ebp, [esi + 0x24]
lea esp, [esp]
mov edx, dword [ebp]
mov eax, dword [esi + 0x4c]
push edx
push esi
call eax
movzx edx, byte [esi + 0xc]
movzx ecx, ax
inc ebx
add esp, 8
add ebp, 4
cmp ebx, edx
lea edi, [edi + ecx + 2]
jl 0x464cf0
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x50]
mov dword [esp + eax*4 + 0x6c], edi
inc eax
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
jl 0x464cd0
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xf4], eax
mov dword [esp + 0x10], ebx
jle 0x464fad
lea eax, [esp + 0x88]
sub eax, 4
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0x40]
cmp dword [esp + ebx + 0x6c], ecx
jle 0x464ebf
mov edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0xf4]
jl 0x464da1
inc eax
cmp eax, 5
mov dword [esp + 0xf4], eax
jg 0x4650b4
mov edx, dword [esp + 0x30]
mov dword [esp + ebx + 0x70], 0
mov dword [esp + ebx + 0x8c], edx
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + ecx + 0x88]
mov eax, dword [esp + 0x3c]
movzx eax, word [eax + ebx*2 - 2]
lea ebp, [ebx - 1]
test ax, ax
jne 0x464dcc
mov edi, ebp
lea esi, [esp + 0x30]
call fcn.004223a0
mov ecx, dword [esp + 0x20]
movzx eax, ax
movzx eax, ax
add eax, 2
sub dword [esp + ecx + 0x6c], eax
cmp dword [esp + 0x48], 0
jne 0x464ea2
cmp ebx, dword [esp + 0x30]
jge 0x464ea0
mov edx, dword [esp + 0x3c]
movzx eax, word [edx + ebx*2]
test ax, ax
jne 0x464e0a
mov edi, ebx
lea esi, [esp + 0x30]
call fcn.004223a0
mov ecx, dword [esp + 0x20]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x464ea2
push 0x4b600c
push 0x10f47
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e160
mov dword [esp + 0x28], 0xb
add esp, 0x14
mov esi, dword [esp + 0x38]
test esi, esi
je 0x465a3d
cmp dword [0x4c90b0], 0
je 0x465a33
mov eax, dword [0x4d3da8]
test eax, eax
je 0x464e6a
push eax
call dword [0x4c910c]
add esp, 4
push esi
call dword [0x4c90e8]
sub dword [0x4d3d48], eax
dec dword [0x4d3d6c]
push esi
call dword [0x4c90e0]
mov eax, dword [0x4d3da8]
add esp, 8
test eax, eax
je 0x465a3d
push eax
call dword [0x4c9114]
jmp 0x465a3a
xor eax, eax
add dword [esp + ecx + 0x70], eax
mov eax, dword [esp + 0x40]
cmp dword [esp + ecx + 0x6c], eax
mov ebx, dword [esp + 0x20]
mov dword [esp + ecx + 0x88], ebp
jg 0x464d70
mov edx, dword [esp + 0x30]
cmp dword [esp + ebx + 0x88], edx
jge 0x464f56
mov ebp, dword [esp + 0x3c]
jmp 0x464ee0
mov edi, dword [esp + ebx + 0x88]
movzx eax, word [ebp + edi*2]
test ax, ax
jne 0x464efe
lea esi, [esp + 0x30]
call fcn.004223a0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + ebx + 0x6c]
movzx eax, ax
movzx eax, ax
add eax, 2
add ecx, eax
cmp ecx, dword [esp + 0x40]
jg 0x464f56
inc edi
cmp dword [esp + 0x48], 0
mov dword [esp + ebx + 0x6c], ecx
mov dword [esp + ebx + 0x88], edi
jne 0x464f4e
cmp edi, edx
jge 0x464f4c
movzx eax, word [ebp + edi*2]
test ax, ax
jne 0x464f41
lea esi, [esp + 0x30]
call fcn.004223a0
mov edx, dword [esp + 0x30]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x464f4e
xor eax, eax
sub dword [esp + ebx + 0x70], eax
cmp edi, edx
jl 0x464ee0
mov ecx, dword [esp + ebx + 0x88]
cmp ecx, edx
jl 0x464f6e
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xf4], edx
jmp 0x464f88
cmp dword [esp + 0x10], 0
jle 0x464f7e
mov eax, dword [esp + 0x18]
mov eax, dword [eax + ebx]
jmp 0x464f80
xor eax, eax
cmp ecx, eax
jle 0x4650c3
mov eax, dword [esp + 0x10]
inc dword [esp + 0x1c]
inc eax
add ebx, 4
cmp eax, dword [esp + 0xf4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebx
jl 0x464d60
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0xf4]
dec ebx
test ebx, ebx
jle 0x4650ee
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + ebx*4 + 0x68]
mov eax, dword [esp + ebx*4 + 0x6c]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x88]
mov ebp, dword [ecx + ebx*4 - 4]
sub ecx, 4
dec ebp
mov edi, ebp
sub edi, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
inc edi
cmp word [edx + edi*2], 0
lea ecx, [edx + edi*2]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jne 0x46500e
lea esi, [esp + 0x30]
call fcn.004223a0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
cmp word [edx + ebp*2], 0
jne 0x465030
mov edi, ebp
lea esi, [esp + 0x30]
call fcn.004223a0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
test eax, eax
je 0x465068
cmp dword [esp + 0x11c], 0
jne 0x465099
mov esi, dword [esp + 0xf4]
dec esi
mov edi, ebx
sub edi, esi
mov esi, dword [esp + 0x1c]
neg edi
sbb edi, edi
and edi, 2
sub esi, edi
movzx edi, word [edx + ebp*2]
sub esi, edi
movzx edi, word [ecx]
lea edi, [edi + eax + 2]
cmp edi, esi
jg 0x465099
movzx esi, word [ecx]
lea eax, [eax + esi + 2]
movzx esi, word [edx + ebp*2]
mov edi, 0xfffffffe
sub edi, esi
mov esi, dword [esp + 0x18]
add dword [esp + 0x1c], edi
mov dword [esi + ebx*4], ebp
dec ebp
sub ecx, 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
test ebp, ebp
jge 0x465012
cmp ebx, 1
mov dword [esp + ebx*4 + 0x6c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + ebx*4 + 0x68], eax
jle 0x4650d2
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + ebx*4 - 4]
jmp 0x4650d4
push 0x4b600c
push 0x10fb4
jmp 0x464e22
push 0x4b600c
push 0x10fd5
jmp 0x464e22
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp dword [ecx + ebx*4], eax
jle 0x465189
dec ebx
test ebx, ebx
jg 0x464fc1
mov ebp, dword [esp + 0x50]
cmp dword [esp + 0xf4], 0
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x38]
movzx ecx, byte [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], 0
jle 0x465288
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x28]
jge 0x4651e7
mov eax, dword [esp + ecx*4 + 0x60]
mov ebx, dword [eax + 0x48]
test byte [ebx + 0x1c], 4
lea edx, [esp + ecx*4 + 0x60]
mov dword [esp + ecx*4 + 0x9c], eax
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x14]
mov dword [edx], 0
je 0x4651a3
mov ecx, dword [ebx + 0x18]
cmp dword [eax + 0x18], ecx
jb 0x4651a3
cmp dword [eax + 0x60], 0
je 0x465185
mov ecx, dword [eax + 0x60]
xor edi, edi
mov dword [esp + 0x20], ecx
test ecx, ecx
jle 0x465185
mov esi, dword [eax + 0x5c]
add esi, 0x10
mov eax, dword [ebx + 0x18]
cmp dword [esi + 4], eax
jb 0x46517d
mov ecx, dword [esi]
call fcn.0041f090
test eax, eax
je 0x465198
mov ecx, dword [esp + 0x20]
inc edi
add esi, 0x30
cmp edi, ecx
jl 0x465166
xor eax, eax
jmp 0x4651ce
push 0x4b600c
push 0x10fff
jmp 0x464e22
push ebx
call fcn.004326a0
add esp, 4
jmp 0x4651ce
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4651ae
mov eax, ecx
jmp 0x4651ce
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
jbe 0x4651c7
push ebx
call fcn.004619f0
add esp, 4
jmp 0x4651ce
mov eax, ebx
call fcn.00461930
inc dword [esp + 0x24]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x464e3e
mov edi, dword [esp + 0x10]
jmp 0x465276
cmp dword [esp + 0x11c], 0
mov eax, 1
jne 0x4651fa
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
push 0
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00463680
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x464e3e
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push eax
call fcn.0044e660
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
inc dword [esp + 0x28]
mov dword [esp + edi*4 + 0xe4], ecx
mov ecx, dword [esp + 0x30]
add esp, 4
cmp byte [ecx + 0x11], 0
mov dword [esp + edi*4 + 0x9c], esi
je 0x465276
mov eax, dword [ebp + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esi + 4]
push 5
call fcn.00462a50
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x464e3e
inc edi
cmp edi, dword [esp + 0xf4]
mov dword [esp + 0x10], edi
jl 0x465112
mov esi, dword [esp + 0x24]
xor eax, eax
test esi, esi
jle 0x4652d7
mov ecx, dword [esp + eax*4 + 0x9c]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x48]
mov cx, word [ecx + 0x1c]
mov word [esp + eax*2 + 0xf4], cx
xor ecx, ecx
mov dword [esp + eax*4 + 0xc8], edx
mov dword [esp + eax*4 + 0xb0], edx
test eax, eax
jle 0x4652d2
nop
cmp dword [esp + ecx*4 + 0xc8], edx
je 0x465397
inc ecx
cmp ecx, eax
jl 0x4652c0
inc eax
cmp eax, esi
jl 0x465292
xor edi, edi
mov dword [esp + 0x10], edi
test esi, esi
jle 0x4654ce
xor ebp, ebp
lea eax, [ebp + 1]
cmp esi, eax
jle 0x465310
xor edx, edx
lea ecx, [eax*4]
mov ebx, dword [esp + ecx + 0xb0]
cmp ebx, dword [esp + edx + 0xb0]
jae 0x46530b
mov ebp, eax
mov edx, ecx
inc eax
cmp eax, esi
jl 0x4652f0
mov ebx, dword [esp + ebp*4 + 0xb0]
mov dword [esp + ebp*4 + 0xb0], 0xffffffff
cmp ebp, edi
je 0x4654c1
jle 0x4653fb
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x2c]
mov ecx, dword [esp + ebp*4 + 0x9c]
mov esi, dword [ecx + 0x48]
mov ecx, dword [esi]
lea edi, [eax + ebp + 1]
mov eax, dword [esi + 0x18]
xor edx, edx
push edi
mov word [esi + 0x1c], dx
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [edx + 0x2c]
push ecx
push eax
call dword [0x4c9144]
movzx eax, word [esi + 0x1c]
add esp, 0x10
mov dword [esi + 0x18], edi
test al, 2
je 0x4653fb
test al, 8
je 0x4653fb
mov eax, dword [esi + 0xc]
cmp dword [eax + 8], esi
jne 0x465388
mov ecx, dword [esi + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4653a6
mov edx, dword [esi + 0x24]
mov dword [ecx + 0x24], edx
jmp 0x4653ac
push 0x4b600c
push 0x11049
jmp 0x464e22
mov ecx, dword [esi + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4653bb
mov edx, dword [esi + 0x20]
mov dword [ecx + 0x20], edx
jmp 0x4653c8
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
test ecx, ecx
jne 0x4653c8
mov byte [eax + 0x21], 2
mov dword [esi + 0x24], 0
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x4653dd
mov dword [ecx + 0x24], esi
jmp 0x4653ea
cmp byte [eax + 0x20], 0
mov dword [eax + 4], esi
je 0x4653ea
mov byte [eax + 0x21], 1
cmp dword [eax + 8], 0
mov dword [eax], esi
jne 0x4653fb
test byte [esi + 0x1c], 8
jne 0x4653fb
mov dword [eax + 8], esi
mov eax, dword [esp + 0x10]
mov edi, dword [esp + eax*4 + 0x9c]
mov esi, dword [edi + 0x48]
mov cx, word [esp + ebp*2 + 0xf4]
mov edx, dword [esi + 0x18]
mov eax, dword [esi]
push ebx
mov word [esi + 0x1c], cx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [ecx + 0x2c]
push eax
push edx
call dword [0x4c9144]
movzx eax, word [esi + 0x1c]
add esp, 0x10
mov dword [esi + 0x18], ebx
test al, 2
je 0x4654b6
test al, 8
je 0x4654b6
mov eax, dword [esi + 0xc]
cmp dword [eax + 8], esi
jne 0x465452
mov ecx, dword [esi + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x465461
mov edx, dword [esi + 0x24]
mov dword [ecx + 0x24], edx
jmp 0x465467
mov ecx, dword [esi + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x465476
mov edx, dword [esi + 0x20]
mov dword [ecx + 0x20], edx
jmp 0x465483
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
test ecx, ecx
jne 0x465483
mov byte [eax + 0x21], 2
mov dword [esi + 0x24], 0
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x465498
mov dword [ecx + 0x24], esi
jmp 0x4654a5
cmp byte [eax + 0x20], 0
mov dword [eax + 4], esi
je 0x4654a5
mov byte [eax + 0x21], 1
cmp dword [eax + 8], 0
mov dword [eax], esi
jne 0x4654b6
test byte [esi + 0x1c], 8
jne 0x4654b6
mov dword [eax + 8], esi
mov esi, dword [esp + 0x24]
mov dword [edi + 4], ebx
mov edi, dword [esp + 0x10]
inc edi
cmp edi, esi
mov dword [esp + 0x10], edi
jl 0x4652e5
test byte [esp + 0x1c], 8
mov eax, dword [esp + esi*4 + 0x98]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x54]
bswap ecx
mov dword [edx], ecx
jne 0x46550c
mov edx, dword [esp + 0x28]
cmp esi, edx
je 0x46550c
lea ecx, [esp + 0x9c]
jg 0x4654fc
lea ecx, [esp + 0x60]
mov ecx, dword [ecx + edx*4 - 4]
mov edx, dword [ecx + 0x38]
mov eax, dword [eax + 0x38]
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x11], 0
mov eax, dword [esp + 0x9c]
je 0x4656c9
mov edx, dword [eax + 0x38]
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x18], edx
movzx edx, word [eax + 0x16]
mov ebx, eax
movzx eax, byte [eax + 0xc]
xor edi, edi
add edx, eax
cmp dword [esp + 0x30], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x4c], edi
jle 0x4656c9
mov dword [esp + 0x20], edi
jmp 0x465560
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
mov ebp, dword [edx + edi*4]
cmp edi, ecx
jne 0x4655c0
mov eax, dword [esp + 0x4c]
inc eax
cmp eax, esi
mov dword [esp + 0x4c], eax
jge 0x465585
mov eax, dword [esp + eax*4 + 0x9c]
jmp 0x465589
mov eax, dword [esp + eax*4 + 0x60]
movzx esi, byte [eax + 0xc]
movzx edx, word [eax + 0x16]
mov eax, dword [eax + 0x38]
mov dword [esp + 0xf4], ebx
xor ebx, ebx
add edx, esi
cmp dword [esp + 0x48], ebx
mov esi, dword [esp + 0x24]
sete bl
mov dword [esp + 0x18], eax
add ebx, ecx
lea ecx, [ebx + edx]
mov ebx, dword [esp + 0xf4]
mov dword [esp + 0x54], ecx
jmp 0x4655c4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
cmp edi, dword [esp + edx + 0x88]
jne 0x4655f4
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
add ecx, ecx
add ecx, ecx
cmp dword [esp + 0x48], 0
mov ebx, dword [esp + ecx + 0x9c]
mov dword [esp + 0x20], ecx
je 0x4656ba
mov ecx, dword [esp + 0x4c]
cmp ecx, esi
jge 0x46561a
mov edx, dword [ebx + 4]
cmp edx, dword [esp + ecx*4 + 0xc8]
jne 0x46561a
cmp ebp, eax
jb 0x46561a
mov ecx, dword [esp + 0x10]
add ecx, eax
cmp ebp, ecx
jb 0x4656ba
cmp word [esp + 0x44], 0
jne 0x46563e
mov ecx, dword [ebx + 4]
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
push ecx
mov ecx, dword [esp + 0x34]
push 5
bswap eax
call fcn.00462a50
add esp, 0xc
mov edx, dword [esp + 0x3c]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x465654
lea esi, [esp + 0x30]
call fcn.004223a0
movzx eax, ax
cmp ax, word [ebx + 0x10]
jbe 0x4656af
cmp dword [esp + 0x14], 0
jne 0x464e3e
mov ecx, dword [ebx + 0x50]
lea eax, [esp + 0xb0]
push eax
push ebp
push ebx
call ecx
movzx edx, word [esp + 0xcc]
add esp, 0xc
cmp edx, dword [esp + 0xbc]
jae 0x4656ba
movzx eax, word [esp + 0xc2]
mov edx, dword [ebx + 4]
mov eax, dword [eax + ebp - 4]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x34]
push edx
push 3
bswap eax
call fcn.00462a50
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x464e3e
mov esi, dword [esp + 0x24]
inc edi
cmp edi, dword [esp + 0x30]
jl 0x465560
lea eax, [esi - 1]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x46582d
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0x88]
mov edi, dword [esp + eax*4 + 0x9c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
movzx edx, word [edx + ecx*2]
mov ebp, dword [eax + ecx*4]
movzx esi, word [esp + 0x44]
mov ebx, dword [esp + 0x84]
movzx eax, dx
add eax, esi
mov esi, dword [esp + 0x80]
add esi, ebx
cmp byte [edi + 8], 0
jne 0x46572f
mov ecx, dword [edi + 0x38]
mov edx, dword [ebp]
mov dword [ecx + 8], edx
jmp 0x4657e0
cmp dword [esp + 0x48], 0
je 0x4657c6
mov edx, dword [esp + 0x38]
lea eax, [esp + 0xc8]
push eax
mov eax, dword [edx + ecx*4 - 4]
mov ecx, dword [edi + 0x50]
push eax
push edi
call ecx
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xd4]
add esp, 0xc
mov ebp, esi
mov ebx, edx
mov dword [esp + 0x58], eax
lea ecx, [esi + 4]
test eax, eax
ja 0x4657b5
jb 0x465778
cmp edx, 0x7f
ja 0x465789
and dl, 0x7f
mov eax, 1
add eax, 4
mov byte [ecx], dl
xor esi, esi
jmp 0x4657e0
test eax, eax
ja 0x4657b5
jb 0x465797
cmp edx, 0x3fff
ja 0x4657b5
shrd edx, eax, 7
shr eax, 7
or dl, 0x80
and bl, 0x7f
mov eax, 2
add eax, 4
mov byte [ecx], dl
mov byte [ecx + 1], bl
xor esi, esi
jmp 0x4657e0
push eax
push edx
call fcn.0041dd00
add esp, 8
add eax, 4
xor esi, esi
jmp 0x4657e0
sub ebp, 4
cmp dx, 4
jne 0x4657e0
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0x4c]
push ebp
push eax
call edx
add esp, 8
movzx eax, ax
mov edx, dword [edi + 4]
add dword [esp + 0x84], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x68]
add eax, ecx
push ebp
push eax
push edx
mov eax, esi
call fcn.004643d0
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x464e3e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
inc eax
dec ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4656e0
mov ebp, dword [esp + 0x24]
mov ebx, 1
sub ebx, ebp
cmp ebx, ebp
jge 0x465915
mov edi, dword [esp + 0x48]
mov eax, ebx
neg eax
mov dword [esp + 0x54], eax
lea esp, [esp]
mov esi, eax
test ebx, ebx
jl 0x465858
mov esi, ebx
cmp byte [esp + esi + 0x100], 0
jne 0x465907
test ebx, ebx
jge 0x46587e
mov ecx, dword [esp + esi*4 + 0xdc]
cmp ecx, dword [esp + esi*4 + 0x84]
jl 0x465907
test esi, esi
jne 0x46588f
mov eax, dword [esp + 0x88]
xor edx, edx
xor ecx, ecx
jmp 0x4658c0
cmp esi, dword [esp + 0x28]
jge 0x4658a5
xor edx, edx
test edi, edi
sete dl
add edx, dword [esp + esi*4 + 0xdc]
jmp 0x4658a9
mov edx, dword [esp + 0x30]
mov eax, dword [esp + esi*4 + 0x88]
xor ecx, ecx
test edi, edi
sete cl
add ecx, dword [esp + esi*4 + 0x84]
sub eax, ecx
mov edi, dword [esp + esi*4 + 0x9c]
lea ebp, [esp + 0x30]
push ebp
push eax
push ecx
push edx
mov eax, edi
call fcn.0044f3c0
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x464e3e
mov dx, word [esp + 0x40]
sub dx, word [esp + esi*4 + 0x6c]
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x24]
mov word [edi + 0x14], dx
mov edi, dword [esp + 0x48]
mov byte [esp + esi + 0x100], 1
inc ebx
dec eax
cmp ebx, ebp
mov dword [esp + 0x54], eax
jl 0x465850
cmp dword [esp + 0x118], 0
je 0x465976
mov edi, dword [esp + 0x50]
cmp word [edi + 0x16], 0
jne 0x465976
movzx ax, byte [edi + 9]
mov esi, dword [esp + 0x9c]
cmp ax, word [esi + 0x14]
ja 0x465976
push 0xffffffffffffffff
push esi
call fcn.0044d990
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], eax
push esi
mov eax, edi
call fcn.004646c0
add esp, 0x10
cmp dword [esp + 0x14], 0
jne 0x4659b9
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x34]
push edx
push esi
push eax
call fcn.00463ca0
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x4659b9
mov edi, dword [esp + 0x2c]
cmp byte [edi + 0x11], 0
je 0x4659b9
cmp word [esp + 0x44], 0
jne 0x4659b9
xor esi, esi
test ebp, ebp
jle 0x4659b9
mov edi, edi
mov ecx, dword [esp + esi*4 + 0x9c]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx + 8]
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x14]
push edx
push ecx
push 5
bswap eax
mov ecx, edi
call fcn.00462a50
inc esi
add esp, 0xc
cmp esi, ebp
jl 0x465990
mov edi, dword [esp + 0x28]
cmp ebp, edi
mov esi, ebp
jge 0x464e3e
mov eax, dword [esp + 0x14]
jmp 0x4659d0
mov ecx, dword [esp + esi*4 + 0x60]
test eax, eax
jne 0x4659e9
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 0x34]
push edx
push ecx
push eax
call fcn.00463ca0
add esp, 0xc
inc esi
cmp esi, edi
jl 0x4659d0
mov dword [esp + 0x14], eax
jmp 0x464e3e
push 0x4b600c
push 0x10f06
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e160
lea ecx, [edi*4 + 4]
push ecx
lea edx, [esp + 0x78]
push 0
push edx
mov dword [esp + 0x34], 0xb
call fcn.00494ec0
add esp, 0x20
jmp 0x465a3d
push esi
call dword [0x4c90e0]
add esp, 4
xor edi, edi
cmp dword [esp + 0x28], edi
mov bl, 0x20
jle 0x465ab4
jmp 0x465a50
mov eax, dword [esp + edi*4 + 0x60]
test eax, eax
je 0x465aad
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], bl
je 0x465aa8
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 ebp, dword [esi]
dec eax
push edx
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x60]
push 0
push eax
call fcn.004983c0
push edx
push eax
mov eax, dword [ebp + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x465aad
call fcn.0041f400
inc edi
cmp edi, dword [esp + 0x28]
jl 0x465a50
xor edi, edi
cmp dword [esp + 0x24], edi
jle 0x465b27
mov eax, dword [esp + edi*4 + 0x9c]
test eax, eax
je 0x465b20
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], bl
je 0x465b1b
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 ebp, dword [esi]
dec eax
push edx
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x60]
push 0
push eax
call fcn.004983c0
push edx
push eax
mov eax, dword [ebp + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x465b20
call fcn.0041f400
inc edi
cmp edi, dword [esp + 0x24]
jl 0x465ac0
mov ecx, dword [esp + 0x108]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049473c
add esp, 0xfc
ret